Skip to content

Commit

Permalink
Merge pull request #37 from 4dma/fix-in-array-js
Browse files Browse the repository at this point in the history
Fix: Set cookie to disable serialization.
  • Loading branch information
pentium10 committed Jan 23, 2014
2 parents 3ccd40c + 7ec7b46 commit 91e7569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/customer.js
Expand Up @@ -83,7 +83,7 @@ $(document).ready(
} else {
val = $(this).val();
}
if (jQuery.inArray(this.id, ['isDisabledUnserialization', 'isDisabledJsonDecode', 'isDisabledJobDataHighlight']))
if (jQuery.inArray(this.id, ['isDisabledUnserialization', 'isDisabledJsonDecode', 'isDisabledJobDataHighlight']) >= 0)
val = $(this).is(':checked') ? null : 1;
$.cookie(this.id, val, {expires: 365});
});
Expand Down

0 comments on commit 91e7569

Please sign in to comment.