Hello,
I use semantic forms with a popup.
When I save the popup, the function "handleInnerSubmit()" (JS) is called but the variable "returnedData" is always "undefined" ...
I don't know why, but because of that, an empty popup is displayed on Google Chrome (and user can only click on the "X" button of popup to close it, without a reload of page).
On Internet Explorer 11, the popup is never displayed and the user need to reload the page to not stay blocked !
Waiting an answer from you, I change some part of the code to not be blocked and automatically reload the page when the article is saved :
Previous :
doc.open(); doc.write(returnedData); doc.close();
Now :
var url = location.href; var start = url.indexOf("action="); if ( start >= 0 ) { var stop = url.indexOf("&", start); if ( stop >= 0 ) { url = url.substr( 0, start - 1 ) + url.substr(stop + 1); } else { url = url.substr( 0, start - 1 ); } } form = jQuery('<form action="' + url + '" method="POST"><input type="hidden" name="action" value="purge"></form>') .appendTo('body'); form .submit();