Details
Description
Plain modal window won't show after revision 1135146, WICKET-3782 Notifications before and after DOM node replacement (...) using Internet Explorer 9 in document mode quirks, 7 and 8. Works in document mode 9, Opera 11.11, Chrome 13.0.782.32 beta-m, Firefox 3.6.18 and 5.0
Seems like the lines:
var newElement = Wicket.$(element.id);
Wicket.Event.publish('/dom/node/added', newElement);
the 2nd time they run, element.id = "", which makes Wicket.$ (document.getElementById("")) crash, and an "ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: [object Error]" is logged to the Wicket ajax debug window.
Quick workaround: Somewhere in your code, include the following script:
<script type="text/javascript">
oldFu = Wicket.$;
Wicket.$ = function(arg) {
if (arg == null || typeof(arg) == "undefined" || arg == "")
return oldFu(arg);
}
</script>
Where the difference to the original $ function is the arg=="" check
Attachments
Attachments
Issue Links
- is duplicated by
-
WICKET-3982 Modal Window is not shown in IE8
- Resolved