From db219df68ea6a8c3a7264c393fee05341bd04f4b Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 30 May 2014 16:23:08 -0700 Subject: [PATCH] Update OOjs UI to v0.1.0-pre (0f101c6f5d) New changes: e86dae9 [BREAKING CHANGE] Emit a single event from confirmation dialog Change-Id: I305224cad8e7bcb7e48dfc31faafeab8ed8a376c --- resources/lib/oojs-ui/oojs-ui.js | 11 +++++------ resources/lib/oojs-ui/oojs-ui.svg.css | 4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/resources/lib/oojs-ui/oojs-ui.js b/resources/lib/oojs-ui/oojs-ui.js index ef8b54f858..07ccc93031 100644 --- a/resources/lib/oojs-ui/oojs-ui.js +++ b/resources/lib/oojs-ui/oojs-ui.js @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.1.0-pre (469d40c88f) + * OOjs UI v0.1.0-pre (0f101c6f5d) * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2014 OOjs Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: Fri May 30 2014 15:29:30 GMT-0700 (PDT) + * Date: Fri May 30 2014 16:23:01 GMT-0700 (PDT) */ ( function ( OO ) { @@ -1958,10 +1958,10 @@ OO.ui.ConfirmationDialog.prototype.initialize = function () { this.$promptContainer = this.$( '
' ).addClass( 'oo-ui-dialog-confirm-promptContainer' ); this.cancelButton = new OO.ui.ButtonWidget(); - this.cancelButton.connect( this, { 'click': [ 'emit', 'cancel' ] } ); + this.cancelButton.connect( this, { 'click': [ 'emit', 'done', 'cancel' ] } ); this.okButton = new OO.ui.ButtonWidget(); - this.okButton.connect( this, { 'click': [ 'emit', 'ok' ] } ); + this.okButton.connect( this, { 'click': [ 'emit', 'done', 'ok' ] } ); // Make the buttons contentLayout.$element.append( this.$promptContainer ); @@ -1973,8 +1973,7 @@ OO.ui.ConfirmationDialog.prototype.initialize = function () { ); this.connect( this, { - 'ok': 'close', - 'cancel': 'close', + 'done': 'close', 'close': [ 'emit', 'cancel' ] } ); }; diff --git a/resources/lib/oojs-ui/oojs-ui.svg.css b/resources/lib/oojs-ui/oojs-ui.svg.css index bc137c2ddb..40ccdf6e5c 100644 --- a/resources/lib/oojs-ui/oojs-ui.svg.css +++ b/resources/lib/oojs-ui/oojs-ui.svg.css @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.1.0-pre (469d40c88f) + * OOjs UI v0.1.0-pre (0f101c6f5d) * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2014 OOjs Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: Fri May 30 2014 15:29:30 GMT-0700 (PDT) + * Date: Fri May 30 2014 16:23:01 GMT-0700 (PDT) */ /* Textures */ -- 2.20.1