Author: sevein
Date: Fri Aug 5 17:13:42 2011
New Revision: 9445
Log:
With some js code, avoid multiple theme selection, see r7960
Modified:
trunk/plugins/sfPluginAdminPlugin/modules/sfPluginAdminPlugin/templates/themesSuccess.php
Modified:
trunk/plugins/sfPluginAdminPlugin/modules/sfPluginAdminPlugin/templates/themesSuccess.php
==============================================================================
---
trunk/plugins/sfPluginAdminPlugin/modules/sfPluginAdminPlugin/templates/themesSuccess.php
Fri Aug 5 17:03:31 2011 (r9444)
+++
trunk/plugins/sfPluginAdminPlugin/modules/sfPluginAdminPlugin/templates/themesSuccess.php
Fri Aug 5 17:13:42 2011 (r9445)
@@ -1,3 +1,29 @@
+<?php use_helper('Javascript') ?>
+
+<?php echo javascript_tag(<<<EOF
+(function ($)
+ {
+ Drupal.behaviors.sfPluginAdminPlugin = {
+ attach: function (context) {
+
+ $('input[name=\'enabled[]\']').click(function() {
+ if (!$(this).is(':checked'))
+ {
+ $(this).removeAttr('checked');
+ }
+ else
+ {
+ $('input[name=\'enabled[]\']').removeAttr('checked');
+ $(this).attr('checked', 'checked');
+ }
+ });
+
+ }
+ };
+ })(jQuery);
+EOF
+) ?>
+
<h1><?php echo __('List themes') ?></h1>
<?php echo $form->renderGlobalErrors() ?>
--
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.com/group/qubit-commits?hl=en.