Update OOjs UI to v0.1.0-pre (0f101c6f5d)
authorRoan Kattouw <roan.kattouw@gmail.com>
Fri, 30 May 2014 23:23:08 +0000 (16:23 -0700)
committerRoan Kattouw <roan.kattouw@gmail.com>
Fri, 30 May 2014 23:23:08 +0000 (16:23 -0700)
New changes:
e86dae9 [BREAKING CHANGE] Emit a single event from confirmation dialog

Change-Id: I305224cad8e7bcb7e48dfc31faafeab8ed8a376c

resources/lib/oojs-ui/oojs-ui.js
resources/lib/oojs-ui/oojs-ui.svg.css

index ef8b54f..07ccc93 100644 (file)
@@ -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.$( '<div>' ).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' ]
        } );
 };
index bc137c2..40ccdf6 100644 (file)
@@ -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 */