diff options
author | mistic100 <mistic@piwigo.org> | 2014-05-28 19:04:40 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2014-05-28 19:04:40 +0000 |
commit | 9a842dd86af254aa5d2212d0e3e4a10961aef492 (patch) | |
tree | 5271edfc6826b58b160d59c8d210af4d38247444 /admin/themes/default/template/picture_modify.tpl | |
parent | 7b3783c9814173d05d5efb216d5b383a4aa2a8fe (diff) |
feature 3077 : fix addAlbum process when creating the first ever album, improve data API
git-svn-id: http://piwigo.org/svn/trunk@28555 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/themes/default/template/picture_modify.tpl | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/admin/themes/default/template/picture_modify.tpl b/admin/themes/default/template/picture_modify.tpl index 60c98140d..21033be92 100644 --- a/admin/themes/default/template/picture_modify.tpl +++ b/admin/themes/default/template/picture_modify.tpl @@ -16,12 +16,7 @@ var categoriesCache = new CategoriesCache({ rootUrl: '{$ROOT_URL}' }); -categoriesCache.selectize(jQuery('[data-selectize=categories]'), { {if $STORAGE_ALBUM} - filter: function(categories, options) { - options.default = (this.name == 'associate[]') ? {$STORAGE_ALBUM} : undefined; - return categories; - } -{/if} }); +categoriesCache.selectize(jQuery('[data-selectize=categories]')); {* <!-- TAGS --> *} var tagsCache = new TagsCache({ @@ -109,13 +104,15 @@ jQuery(function(){ {* <!-- onLoad needed to wait localization loads --> *} <strong>{'Linked albums'|@translate}</strong> <br> <select data-selectize="categories" data-value="{$associated_albums|@json_encode|escape:html}" - name="associate[]" multiple style="width:600px;"></select> + placeholder="{'Type in a search term'|translate}" + data-default="{$STORAGE_ALBUM}" name="associate[]" multiple style="width:600px;"></select> </p> <p> <strong>{'Representation of albums'|@translate}</strong> <br> <select data-selectize="categories" data-value="{$represented_albums|@json_encode|escape:html}" + placeholder="{'Type in a search term'|translate}" name="represent[]" multiple style="width:600px;"></select> </p> @@ -123,7 +120,8 @@ jQuery(function(){ {* <!-- onLoad needed to wait localization loads --> *} <strong>{'Tags'|@translate}</strong> <br> <select data-selectize="tags" data-value="{$tag_selection|@json_encode|escape:html}" - name="tags[]" multiple style="width:600px;" data-selectize-create></select> + placeholder="{'Type in a search term'|translate}" + data-create="true" name="tags[]" multiple style="width:600px;"</select> </p> <p> |