const$confirmDialog=$('<div>'+Drupal.t('Warning! This form changes configuration that can not be tracked or contained inside a workspace, so it will be applied to the Live site instead. Do you want to continue anyway?')+'</div>').appendTo('body');
Drupal.dialog($confirmDialog,{
title:Drupal.t('Form should not be submitted in a workspace'),
minWidth:600,
minHeight:230,
buttons:[
{
text:Drupal.t('Submit in Live'),
click:function(){
submissionConfirmed=true;
$(submitBtn).click();
}
},
{
text:Drupal.t('Cancel'),
click:function(){
$(this).dialog('close');
}
},
]
}).showModal();
event.preventDefault();
returnfalse;
},
);
});
attach:function (context,settings){
if (!settings.wseSubmitDialog.formSelectors.length){
const$confirmDialog=$('<div>'+Drupal.t('Warning! This form changes configuration that can not be tracked or contained inside a workspace, so it will be applied to the Live site instead. Do you want to continue anyway?')+'</div>').appendTo('body');
Drupal.dialog($confirmDialog,{
title:Drupal.t('Form should not be submitted in a workspace'),