mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 20:13:28 +00:00
Use ['locales.I18n.available'] to generate field label
This commit is contained in:
@@ -58,13 +58,19 @@ define([
|
||||
AdminFieldApp.dcFieldsCollection = new DcFieldsCollection();
|
||||
|
||||
// load strings
|
||||
i18n.init({ resGetPath: "/admin/fields/language.json"});
|
||||
i18n.init({resGetPath: "/admin/fields/language.json"});
|
||||
|
||||
// load all collections
|
||||
$.when.apply($, [
|
||||
AdminFieldApp.fieldsCollection.fetch(),
|
||||
AdminFieldApp.vocabularyCollection.fetch(),
|
||||
AdminFieldApp.dcFieldsCollection.fetch()
|
||||
AdminFieldApp.dcFieldsCollection.fetch(),
|
||||
$.ajax({
|
||||
url: '/available-languages',
|
||||
success: function(languages) {
|
||||
AdminFieldApp.languages = languages;
|
||||
}
|
||||
})
|
||||
]).done(
|
||||
function() {
|
||||
// register views
|
||||
|
Reference in New Issue
Block a user