Toggle checkbox action based on its value

This commit is contained in:
Hadi Nategh 2017-09-01 16:17:01 +02:00
parent f4dd4bbf96
commit 1112b3bc59

View File

@ -585,7 +585,7 @@ var et2_toolbar = (function(){ "use strict"; return et2_DOMWidget.extend([et2_II
} }
else if (btn.length > 0) else if (btn.length > 0)
{ {
btn.toggleClass('toolbar_toggled'+ (typeof action_event.data.toggledClass != 'undefined'?" "+action_event.data.toggledClass:'')); btn.toggleClass('toolbar_toggled'+ (typeof action_event.data.toggledClass != 'undefined'?" "+action_event.data.toggledClass:''), _value);
} }
} }
else if (action_event) else if (action_event)