Signed-off-by: Jason Etheridge <jason@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_1@19853
dcc99617-32d9-48b4-a31d-
7c20da2025e4
}
function checkILSEvent(obj) {
- if( obj && obj.ilsevent != null && obj.ilsevent != 0 )
- return parseInt(obj.ilsevent);
+ if (obj && typeof obj == 'object' && typeof obj.ilsevent != 'undefined') {
+ if (obj.ilsevent === '') {
+ return true;
+ } else if ( obj.ilsevent != null && obj.ilsevent != 0 ) {
+ return parseInt(obj.ilsevent);
+ }
+ }
return null;
}