mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(client) loadDir: image position on top, when no history
This commit is contained in:
parent
f2f96e1015
commit
30cddd45f5
1 changed files with 4 additions and 2 deletions
|
|
@ -50,6 +50,7 @@ var Util, DOM, CloudFunc, join;
|
|||
*/
|
||||
this.loadDir = function(params, callback) {
|
||||
var link, imgPosition, panelChanged, pathParams,
|
||||
noCurrent,
|
||||
isRefresh, panel, history,
|
||||
p = params;
|
||||
|
||||
|
|
@ -58,18 +59,19 @@ var Util, DOM, CloudFunc, join;
|
|||
isRefresh = p.isRefresh;
|
||||
panel = p.panel;
|
||||
history = p.history;
|
||||
noCurrent = p.noCurrent;
|
||||
}
|
||||
|
||||
if (pathParams)
|
||||
link = pathParams;
|
||||
|
||||
if (!params.noCurrent)
|
||||
if (!noCurrent)
|
||||
if (panel && panel !== Info.panel) {
|
||||
DOM.changePanel();
|
||||
panelChanged = true;
|
||||
}
|
||||
|
||||
if (panelChanged || isRefresh)
|
||||
if (panelChanged || isRefresh || !history)
|
||||
imgPosition = 'top';
|
||||
|
||||
Images.show.load(imgPosition);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue