mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
fix(view) show: mv default to bottom of switch
This commit is contained in:
parent
0f364fa936
commit
28d5945b98
1 changed files with 10 additions and 10 deletions
|
|
@ -106,16 +106,6 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
type = getType(path);
|
||||
|
||||
switch(path) {
|
||||
default:
|
||||
Info.getData(function(data) {
|
||||
var element = document.createTextNode(data);
|
||||
/* add margin only for view text documents */
|
||||
Element.css('margin', '2%');
|
||||
|
||||
$.fancybox(Element.append(element), Config);
|
||||
});
|
||||
break;
|
||||
|
||||
case 'image':
|
||||
config = Util.copyObj({
|
||||
autoSize : true
|
||||
|
|
@ -146,6 +136,16 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
});
|
||||
});
|
||||
break;
|
||||
|
||||
default:
|
||||
Info.getData(function(data) {
|
||||
var element = document.createTextNode(data);
|
||||
/* add margin only for view text documents */
|
||||
Element.css('margin', '2%');
|
||||
|
||||
$.fancybox(Element.append(element), Config);
|
||||
});
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue