aboutsummaryrefslogtreecommitdiff
path: root/mod/notifications
diff options
context:
space:
mode:
Diffstat (limited to 'mod/notifications')
-rw-r--r--mod/notifications/views/default/notifications/subscriptions/jsfuncs.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/notifications/views/default/notifications/subscriptions/jsfuncs.php b/mod/notifications/views/default/notifications/subscriptions/jsfuncs.php
index 20ce25e1b..401851ac5 100644
--- a/mod/notifications/views/default/notifications/subscriptions/jsfuncs.php
+++ b/mod/notifications/views/default/notifications/subscriptions/jsfuncs.php
@@ -2,7 +2,7 @@
global $NOTIFICATION_HANDLERS;
-?>
+?>
<script type="text/javascript">
@@ -10,7 +10,7 @@ $(document).ready(function () {
<?php
foreach($NOTIFICATION_HANDLERS as $method => $foo) {
?>
- $('input[@type=checkbox]:checked').parent("a.<?php echo $method; ?>toggleOff").each(function(){
+ $('input[type=checkbox]:checked').parent("a.<?php echo $method; ?>toggleOff").each(function(){
$(this).removeClass('<?php echo $method; ?>toggleOff').addClass('<?php echo $method; ?>toggleOn');
});
@@ -40,10 +40,10 @@ function adjust<?php echo $method; ?>_alt(linkId) {
if (obj.className == "<?php echo $method; ?>toggleOff") {
obj.className = "<?php echo $method; ?>toggleOn";
- $('#' + linkId).children("INPUT[type='checkbox']").attr('checked', true);
+ $('#' + linkId).children("input[type='checkbox']").attr('checked', true);
} else {
obj.className = "<?php echo $method; ?>toggleOff";
- $('#' + linkId).children("INPUT[type='checkbox']").attr('checked', false);
+ $('#' + linkId).children("input[type='checkbox']").attr('checked', false);
}
return false;
}