diff options
author | Zaphod <zaphod@piwigo.org> | 2012-03-28 18:44:10 +0000 |
---|---|---|
committer | Zaphod <zaphod@piwigo.org> | 2012-03-28 18:44:10 +0000 |
commit | e01f669fb028c26a6192587661c999826b1f25a6 (patch) | |
tree | 9ebdcf48d5c49fa978f76212fb85f254b693ca25 /themes/default/template | |
parent | 03ed425cc3889d2374c8db320953962ed2291eed (diff) |
feature 2588: bug correction on picture.tpl (privacylevelbox)
git-svn-id: http://piwigo.org/svn/trunk@13787 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | themes/default/template/picture.tpl | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl index 87d813713..723c0bc8c 100644 --- a/themes/default/template/picture.tpl +++ b/themes/default/template/picture.tpl @@ -288,10 +288,8 @@ y.callService( method: "POST", onFailure: function(num, text) { alert(num + " " + text); }, onSuccess: function(result) { - jQuery('.levelCheck').hide(); - jQuery('#levelCheck'+level).show(); - jQuery('#privacyLevelBox .switchSelected').css('visibility','hidden'); - jQuery('#switchLevel'+level).css('visibility','visible'); + jQuery('#privacyLevelBox .switchCheck').css('visibility','hidden'); + jQuery('#levelCheck'+level).css('visibility','visible'); } } ); @@ -314,8 +312,8 @@ function togglePrivacyLevelBox() <div id="privacyLevelBox" class="switchBox" onclick="togglePrivacyLevelBox()" style="display:none" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e==this||togglePrivacyLevelBox()"> {foreach from=$available_permission_levels item=label key=level} - <span id="levelCheck{$level}" class="levelCheck switchCheck" {if $level != $current.level}style="visibility:hidden"{/if}>✔ </span> - <a id="switchLevel{$level}" {if $level == $current.level}class="switchSelected"{else}class="switchUnselected"{/if} href="javascript:setPrivacyLevel('{$ROOT_URL}', {$current.id}, {$level})">{$label}</a><br> + <span id="levelCheck{$level}" class="switchCheck" {if $level != $current.level} style="visibility:hidden"{/if}>✔ </span> + <a id="switchLevel{$level}" href="javascript:setPrivacyLevel('{$ROOT_URL}', {$current.id}, {$level})">{$label}</a><br> {/foreach} </div> |