Skip to content

Commit

Permalink
Fix EZP-21124: Checkbox custom attributes on custom tags are not stored
Browse files Browse the repository at this point in the history
  • Loading branch information
dpobel committed Feb 28, 2014
1 parent feffe1c commit 38d83f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/ezoe/design/standard/javascript/ezoe/popup_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ var eZOEPopupUtils = {
{
var o = jQuery( el ), name = o.attr("name"), value, style;
if ( o.hasClass('mceItemSkip') || !name ) return;
if ( o.attr("type") === 'checkbox' && !o.attr("checked") ) return;
if ( o.attr("type") === 'checkbox' && !o.prop("checked") ) return;

// see if there is a save hander that needs to do some work on the value
if ( handler[el.id] !== undefined && handler[el.id].call !== undefined )
Expand Down Expand Up @@ -486,7 +486,7 @@ var eZOEPopupUtils = {
{
var o = jQuery( el ), name = o.attr("name");
if ( o.hasClass('mceItemSkip') || !name ) return;
if ( o.attr("type") === 'checkbox' && !o.attr("checked") ) return;
if ( o.attr("type") === 'checkbox' && !o.prop("checked") ) return;
// see if there is a save hander that needs to do some work on the value
if ( handler[el.id] !== undefined && handler[el.id].call !== undefined )
args[name] = handler[el.id].call( o, el, o.val() );
Expand Down

0 comments on commit 38d83f7

Please sign in to comment.