From 62c69bb477ced2427a75e77c50e1bcad1f02e15a Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 9 Feb 2012 00:02:11 +0000 Subject: feature 2470 added: ability to create a new album "on the fly" on the "associate to album" action of the Batch Manager. The code was moved from the upload form and is now used by the upload form + Batch Manager. git-svn-id: http://piwigo.org/svn/trunk@13063 68402e56-0260-453c-a942-63ccdbb3a9ee --- .../default/template/include/add_album.inc.tpl | 102 +++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 admin/themes/default/template/include/add_album.inc.tpl (limited to 'admin/themes/default/template/include') diff --git a/admin/themes/default/template/include/add_album.inc.tpl b/admin/themes/default/template/include/add_album.inc.tpl new file mode 100644 index 000000000..82178ab11 --- /dev/null +++ b/admin/themes/default/template/include/add_album.inc.tpl @@ -0,0 +1,102 @@ +{footer_script}{literal} +jQuery(document).ready(function(){ + function fillCategoryListbox(selectId, selectedValue) { + jQuery.getJSON( + "ws.php?format=json&method=pwg.categories.getList", + { + recursive: true, + fullname: true, + format: "json", + }, + function(data) { + jQuery.each( + data.result.categories, + function(i,category) { + var selected = null; + if (category.id == selectedValue) { + selected = "selected"; + } + + jQuery("