From: Michael Dale Date: Sat, 25 Jul 2009 20:47:42 +0000 (+0000) Subject: fixed title restore after cancel edit in add-media-wizard X-Git-Tag: 1.31.0-rc.0~40717 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=692444f6af9c6fc2c9967304f580192442e1baf0;p=lhc%2Fweb%2Fwiklou.git fixed title restore after cancel edit in add-media-wizard --- diff --git a/js2/mwEmbed/libAddMedia/remoteSearchDriver.js b/js2/mwEmbed/libAddMedia/remoteSearchDriver.js index 0825b21dbf..8a3eddc24b 100644 --- a/js2/mwEmbed/libAddMedia/remoteSearchDriver.js +++ b/js2/mwEmbed/libAddMedia/remoteSearchDriver.js @@ -1058,12 +1058,15 @@ remoteSearchDriver.prototype = { var _this = this; var b_target = _this.target_container + '~ .ui-dialog-buttonpane'; $j('#rsd_resource_edit').remove(); + //restore the title: + $j( _this.target_container ).dialog( 'option', 'title', gM('add_media_wizard')); js_log("should update: " + b_target + ' with: cancel'); + //restore the buttons: $j(b_target).html( $j.btnHtml( 'Cancel' , 'mv_cancel_rsd', 'close')) .children('.mv_cancel_rsd') .btnBind() .click(function(){ - $j( _this.target_container).dialog('close'); + $j( _this.target_container).dialog('close'); }) },