Use shorter array-conversion

remotes/origin/stable6
kondou 13 years ago
parent 226c205631
commit c6ca9c1e9d
  1. 4
      core/js/oc-dialogs.js

@ -245,9 +245,7 @@ var OCdialogs = {
},
_getFileList: function(dir, mimeType) {
if (typeof(mimeType) === "string") {
var tmp = mimeType;
mimeType = new Array();
mimeType[0] = tmp;
mimeType = [mimeType];
}
return $.getJSON(

Loading…
Cancel
Save