bug 2944: r25280 broke the process on batch manager
git-svn-id: http://piwigo.org/svn/trunk@25312 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
3a85687166
commit
7d939e3bad
1 changed files with 4 additions and 3 deletions
|
@ -1,11 +1,11 @@
|
||||||
{footer_script}{literal}
|
{footer_script}{literal}
|
||||||
jQuery(document).ready(function(){
|
jQuery(document).ready(function(){
|
||||||
var $albumSelect = jQuery("#albumSelect");
|
|
||||||
|
|
||||||
jQuery(".addAlbumOpen").colorbox({
|
jQuery(".addAlbumOpen").colorbox({
|
||||||
inline: true,
|
inline: true,
|
||||||
href: "#addAlbumForm",
|
href: "#addAlbumForm",
|
||||||
onComplete: function() {
|
onComplete: function() {
|
||||||
|
var $albumSelect = jQuery("#albumSelect");
|
||||||
|
|
||||||
jQuery("input[name=category_name]").focus();
|
jQuery("input[name=category_name]").focus();
|
||||||
|
|
||||||
jQuery("#category_parent").html('<option value="0">------------</option>')
|
jQuery("#category_parent").html('<option value="0">------------</option>')
|
||||||
|
@ -48,7 +48,8 @@ jQuery(document).ready(function(){
|
||||||
.attr("value", newAlbum)
|
.attr("value", newAlbum)
|
||||||
.attr("selected", "selected")
|
.attr("selected", "selected")
|
||||||
.text(newAlbum_name);
|
.text(newAlbum_name);
|
||||||
|
|
||||||
|
var $albumSelect = jQuery("#albumSelect");
|
||||||
$albumSelect.find("option").removeAttr('selected');
|
$albumSelect.find("option").removeAttr('selected');
|
||||||
|
|
||||||
if (parent_id==0) {
|
if (parent_id==0) {
|
||||||
|
|
Loading…
Reference in a new issue