got5/tapestry5-jquery — Issue #146: Closing modal dialog/removing zone from DOM
Author: Matt11
Created: 2012-02-22 15:04:50+00:00
State: open

We're just evaluating got5 and trying to update our jQuery/prototype mix to only jQuery. We're using modal dialogs and after submitting the form in the dialog it should be removed from the dom (not only hidden or display: none). It was accomplished by simply returning an empty string for this section (MultiZoneUpdate). In tapestry-jquery line 708 in Release 3.0.1 an empty string throws an exception.

applyContentUpdate: function(content) {
if (!content) {
$().log("WARN: content is undefined. Aborting update for zone: " + this.element.attr("id"));
return;
}

We could simply work around this by sending a whitespace but i feel it would be cleaner to change the if condition, hope you agree.

best regards
Matt