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/photos_add_direct.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 'admin/themes/default/template/photos_add_direct.tpl')
-rw-r--r-- | admin/themes/default/template/photos_add_direct.tpl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/admin/themes/default/template/photos_add_direct.tpl b/admin/themes/default/template/photos_add_direct.tpl index 0a23ca8f0..39eb856cc 100644 --- a/admin/themes/default/template/photos_add_direct.tpl +++ b/admin/themes/default/template/photos_add_direct.tpl @@ -27,7 +27,6 @@ categoriesCache.selectize(jQuery('[data-selectize=categories]'), { filter: function(categories, options) { if (categories.length > 0) { jQuery("#albumSelection, .selectFiles, .showFieldset").show(); - options.default = categories[0].id; } return categories; @@ -201,7 +200,7 @@ jQuery(document).ready(function(){ <span id="albumSelection" style="display:none"> <select data-selectize="categories" data-value="{$selected_category|@json_encode|escape:html}" - name="category" style="width:400px"></select> + data-default="first" name="category" style="width:400px"></select> <br>{'... or '|@translate}</span> <a href="#" data-add-album="category" title="{'create a new album'|@translate}">{'create a new album'|@translate}</a> </fieldset> |