MINOR Fixed JSON parsing error when no ss-ui-dialog cookie is defined

This commit is contained in:
Ingo Schommer 2011-12-14 12:41:36 +01:00
parent f2ec8b0d54
commit 1b7c33574a

View File

@ -210,7 +210,7 @@
+ '</div>'
);
var cookieVal = (jQuery.cookie) ? JSON.parse(jQuery.cookie('ss-ui-dialog')) : false;
var cookieVal = (jQuery.cookie && jQuery.cookie('ss-ui-dialog')) ? JSON.parse(jQuery.cookie('ss-ui-dialog')) : false;
$("#ss-ui-dialog").dialog(jQuery.extend({
autoOpen: false,
bgiframe: true,