mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed JSON parsing error when no ss-ui-dialog cookie is defined
This commit is contained in:
parent
f2ec8b0d54
commit
1b7c33574a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user