Created
March 6, 2015 20:12
-
-
Save ifnull/9a4f95be7b7cd78a67bc to your computer and use it in GitHub Desktop.
Patch for checkbox issue in wunderadmin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/public_html/skin/adminhtml/default/wunderadmin/js/wunderadmin.js b/public_html/skin/adminhtml/default/wunderadmin/js/wunderadmin.js | |
index ae9d3da..ae2641a 100755 | |
--- a/public_html/skin/adminhtml/default/wunderadmin/js/wunderadmin.js | |
+++ b/public_html/skin/adminhtml/default/wunderadmin/js/wunderadmin.js | |
@@ -36,6 +36,10 @@ if (typeof toggleValueElements != 'undefined') | |
var toggleValueElements = (function() { | |
var _toggleValueElements = toggleValueElements; | |
return function(checkbox, container, excludedElements, checked) { | |
+ if (typeof container == 'undefined') { | |
+ container = Element.previous(checkbox.parentNode.parentNode); | |
+ } | |
+ | |
if(container && checkbox){ | |
var ignoredElements = [checkbox]; | |
if (typeof excludedElements != 'undefined') { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment