Merge pull request #21769 from owncloud/sort-mimetype-list-before-saving
Sort mimetype list before saving
This commit is contained in:
commit
57d9e2b2b7
|
@ -71,6 +71,7 @@ class UpdateJS extends Command {
|
||||||
|
|
||||||
//Remove duplicates
|
//Remove duplicates
|
||||||
$files = array_values(array_unique($files));
|
$files = array_values(array_unique($files));
|
||||||
|
sort($files);
|
||||||
|
|
||||||
// Fetch all themes!
|
// Fetch all themes!
|
||||||
$themes = [];
|
$themes = [];
|
||||||
|
@ -100,6 +101,7 @@ class UpdateJS extends Command {
|
||||||
|
|
||||||
//Remove Duplicates
|
//Remove Duplicates
|
||||||
$themes[$theme] = array_values(array_unique($themes[$theme]));
|
$themes[$theme] = array_values(array_unique($themes[$theme]));
|
||||||
|
sort($themes[$theme]);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Generate the JS
|
//Generate the JS
|
||||||
|
|
|
@ -82,26 +82,26 @@ OC.MimeTypeList={
|
||||||
"web": "text/code"
|
"web": "text/code"
|
||||||
},
|
},
|
||||||
files: [
|
files: [
|
||||||
"video",
|
"application",
|
||||||
|
"application-pdf",
|
||||||
|
"audio",
|
||||||
|
"file",
|
||||||
|
"folder",
|
||||||
"folder-drag-accept",
|
"folder-drag-accept",
|
||||||
"folder-starred",
|
"folder-external",
|
||||||
"folder-public",
|
"folder-public",
|
||||||
|
"folder-shared",
|
||||||
|
"folder-starred",
|
||||||
|
"image",
|
||||||
"package-x-generic",
|
"package-x-generic",
|
||||||
"text",
|
"text",
|
||||||
"folder-external",
|
|
||||||
"text-vcard",
|
|
||||||
"application",
|
|
||||||
"text-code",
|
|
||||||
"x-office-spreadsheet",
|
|
||||||
"application-pdf",
|
|
||||||
"folder",
|
|
||||||
"x-office-document",
|
|
||||||
"text-calendar",
|
"text-calendar",
|
||||||
|
"text-code",
|
||||||
|
"text-vcard",
|
||||||
|
"video",
|
||||||
|
"x-office-document",
|
||||||
"x-office-presentation",
|
"x-office-presentation",
|
||||||
"file",
|
"x-office-spreadsheet"
|
||||||
"folder-shared",
|
|
||||||
"image",
|
|
||||||
"audio"
|
|
||||||
],
|
],
|
||||||
themes: []
|
themes: []
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue