fix(view) show: mv default to bottom of switch

This commit is contained in:
coderaiser 2014-05-20 04:17:24 -04:00
parent 0f364fa936
commit 28d5945b98

View file

@ -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;
}
}
}