objectID: this._container[$containerID].data('objectID')
}
});
+ this._proxy.setOption('failure', $.proxy(function() { this._cancel(); }, this));
this._proxy.sendRequest();
}
else {
$('<span class="icon icon48 icon-spinner" />').appendTo($messageBody);
var $content = $messageBody.find('.messageText');
- this._cache = $content.html();
- $content.empty();
+ this._cache = $content.children().detach();
// hide unrelated content
$content.parent().children('.jsInlineEditorHideContent').hide();
* @param object data
*/
_showEditor: function(data) {
+ // revert failure function
+ this._proxy.setOption('failure', $.proxy(this._failure, this));
+
var $messageBody = this._container[this._activeElementID].addClass('jsInvalidQuoteTarget').find('.messageBody');
$messageBody.children('.icon-spinner').remove();
var $content = $messageBody.find('.messageText');