diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-12-03 23:38:48 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-12-04 18:00:13 +0100 |
commit | daf452b4ba66b192d9597f501f6a6bd3e2c200a9 (patch) | |
tree | 9ef1fc1afc5ccc18967bbaa80e3ec7772aa44b18 /core | |
parent | 9ddd754bce4c9ffcef86748e2abcd1d727f3f382 (diff) | |
download | nextcloud-server-daf452b4ba66b192d9597f501f6a6bd3e2c200a9.tar.gz nextcloud-server-daf452b4ba66b192d9597f501f6a6bd3e2c200a9.zip |
Added some missing type checks.
Diffstat (limited to 'core')
-rw-r--r-- | core/js/multiselect.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/multiselect.js b/core/js/multiselect.js index bec9b5856c2..59c18d0f81f 100644 --- a/core/js/multiselect.js +++ b/core/js/multiselect.js @@ -117,7 +117,7 @@ }); } element.attr('selected','selected'); - if(settings.oncheck){ + if(typeof settings.oncheck === 'function'){ if(settings.oncheck(value)===false){ $(this).attr('checked', false); return; @@ -128,7 +128,7 @@ }else{ var index=settings.checked.indexOf(value); element.attr('selected',null); - if(settings.onuncheck){ + if(typeof settings.onuncheck === 'function'){ if(settings.onuncheck(value)===false){ $(this).attr('checked',true); return; |