aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/photos_add_settings.tpl
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-03-09 14:22:48 +0000
committerpatdenice <patdenice@piwigo.org>2011-03-09 14:22:48 +0000
commit8b64b57a27139a671800c6768133be0a8bb6d35f (patch)
tree238df6041c9c5ab9edd93d2465d9fbf3b03598d7 /admin/themes/default/template/photos_add_settings.tpl
parent0552013a5765ffa46aabf93068eeb2109c2cb9e4 (diff)
feature:2114
Simplify all admin templates. git-svn-id: http://piwigo.org/svn/trunk@9586 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template/photos_add_settings.tpl')
-rw-r--r--admin/themes/default/template/photos_add_settings.tpl30
1 files changed, 14 insertions, 16 deletions
diff --git a/admin/themes/default/template/photos_add_settings.tpl b/admin/themes/default/template/photos_add_settings.tpl
index fe9830e9e..c8cc19b84 100644
--- a/admin/themes/default/template/photos_add_settings.tpl
+++ b/admin/themes/default/template/photos_add_settings.tpl
@@ -1,38 +1,37 @@
-{literal}
-<script type="text/javascript">
-$(document).ready(function(){
+{footer_script}{literal}
+jQuery(document).ready(function(){
function toggleResizeFields(prefix) {
- var checkbox = $("#"+prefix+"_resize");
- var needToggle = $("input[name^="+prefix+"_]").not(checkbox).not($("#hd_keep")).parents('tr');
+ var checkbox = jQuery("#"+prefix+"_resize");
+ var needToggle = jQuery("input[name^="+prefix+"_]").not(checkbox).not(jQuery("#hd_keep")).parents('tr');
- if ($(checkbox).is(':checked')) {
+ if (jQuery(checkbox).is(':checked')) {
needToggle.show();
if (prefix == "websize") {
- $("#hd_keep").parents("fieldset").show();
+ jQuery("#hd_keep").parents("fieldset").show();
}
}
else {
needToggle.hide();
if (prefix == "websize") {
- $("#hd_keep").parents("fieldset").hide();
+ jQuery("#hd_keep").parents("fieldset").hide();
}
}
}
toggleResizeFields("websize");
- $("#websize_resize").click(function () {toggleResizeFields("websize")});
+ jQuery("#websize_resize").click(function () {toggleResizeFields("websize")});
toggleResizeFields("hd");
- $("#hd_resize").click(function () {toggleResizeFields("hd")});
+ jQuery("#hd_resize").click(function () {toggleResizeFields("hd")});
function toggleHdFields() {
- var checkbox = $("#hd_keep");
- var needToggle = $("input[name^=hd_]").not(checkbox).parents('tr');
+ var checkbox = jQuery("#hd_keep");
+ var needToggle = jQuery("input[name^=hd_]").not(checkbox).parents('tr');
- if ($(checkbox).is(':checked')) {
+ if (jQuery(checkbox).is(':checked')) {
needToggle.show();
toggleResizeFields("hd");
}
@@ -42,10 +41,9 @@ $(document).ready(function(){
}
toggleHdFields();
- $("#hd_keep").click(function () {toggleHdFields()});
+ jQuery("#hd_keep").click(function () {toggleHdFields()});
});
-</script>
-{/literal}
+{/literal}{/footer_script}
<div class="titrePage">
<h2>{'Upload Photos'|@translate}</h2>