Author: sevein
Date: Thu Oct 22 16:01:13 2009
New Revision: 3803

Log:
Fix bug introduced in r3753 (issue 809). Now is possible to unselect themes to 
get default one. Fixes issue 1081.

Modified:
   
trunk/plugins/sfPluginAdminPlugin/modules/sfPluginAdminPlugin/templates/indexSuccess.php

Modified: 
trunk/plugins/sfPluginAdminPlugin/modules/sfPluginAdminPlugin/templates/indexSuccess.php
==============================================================================
--- 
trunk/plugins/sfPluginAdminPlugin/modules/sfPluginAdminPlugin/templates/indexSuccess.php
    Thu Oct 22 14:45:22 2009        (r3802)
+++ 
trunk/plugins/sfPluginAdminPlugin/modules/sfPluginAdminPlugin/templates/indexSuccess.php
    Thu Oct 22 16:01:13 2009        (r3803)
@@ -4,8 +4,15 @@
 Drupal.behaviors.sfPluginAdminPlugin = {
   attach: function (context) {
     $('input[name=\'enabled[]\']').click(function() {
-      $('input[name=\'enabled[]\']').removeAttr('checked');
-      $(this).attr('checked', 'checked');
+      if (!$(this).is(':checked'))
+      {
+        $(this).removeAttr('checked');
+      }
+      else
+      {
+        $('input[name=\'enabled[]\']').removeAttr('checked');
+        $(this).attr('checked', 'checked');
+      }
     });
   }
 };

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to