From 9a842dd86af254aa5d2212d0e3e4a10961aef492 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Wed, 28 May 2014 19:04:40 +0000 Subject: 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 --- admin/themes/default/template/picture_modify.tpl | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'admin/themes/default/template/picture_modify.tpl') 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]')); {* *} var tagsCache = new TagsCache({ @@ -109,13 +104,15 @@ jQuery(function(){ {* *} {'Linked albums'|@translate}
+ placeholder="{'Type in a search term'|translate}" + data-default="{$STORAGE_ALBUM}" name="associate[]" multiple style="width:600px;">

{'Representation of albums'|@translate}

@@ -123,7 +120,8 @@ jQuery(function(){ {* *} {'Tags'|@translate}
+ placeholder="{'Type in a search term'|translate}" + data-create="true" name="tags[]" multiple style="width:600px;"

-- cgit v1.2.3