Skip to content

Commit

Permalink
Some code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fretzl committed Dec 5, 2014
1 parent caa8dbb commit 7ed6047
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions zp-core/admin-upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,15 @@
<?php seoFriendlyJS(); ?>
function buttonstate(good) {
$('#albumtitleslot').val($('#albumtitle').val());

var publishalbumchecked;
if ($('#publishalbum').prop('checked')) { publishalbumchecked = 1 }
else { publishalbumchecked = 0 }
if ($('#publishalbum').prop('checked')) {
publishalbumchecked = 1 ;
} else {
publishalbumchecked = 0;
}
$('#publishalbumslot').val(publishalbumchecked);

if (good) {
$('#fileUploadbuttons').show();
} else {
Expand All @@ -190,8 +195,12 @@ function buttonstate(good) {
}

function publishCheck() {
if ($('#publishalbum').prop('checked')) { publishalbumchecked = 1 }
else { publishalbumchecked = 0 }
var publishalbumchecked;
if ($('#publishalbum').prop('checked')) {
publishalbumchecked = 1 ;
} else {
publishalbumchecked = 0;
}
$('#publishalbumslot').val(publishalbumchecked);
}

Expand Down

0 comments on commit 7ed6047

Please sign in to comment.