Update OOjs UI to v0.1.0-pre (527ad0ee5a)
authorJames D. Forrester <jforrester@wikimedia.org>
Mon, 2 Jun 2014 19:15:14 +0000 (12:15 -0700)
committerKrinkle <krinklemail@gmail.com>
Mon, 2 Jun 2014 23:49:10 +0000 (23:49 +0000)
New changes:
50355d0 Localisation updates from https://translatewiki.net.
8dd3460 Resolve the opened promise after teardown
5153f85 Followup 205fa98a: fix incorrect use of .super

Change-Id: I81986ef0b5b768753ffb3b25ebe41bf648a796d1

resources/lib/oojs-ui/i18n/sl.json
resources/lib/oojs-ui/oojs-ui.js
resources/lib/oojs-ui/oojs-ui.svg.css

index f56773f..f0ccce5 100644 (file)
@@ -11,5 +11,9 @@
        "ooui-outline-control-move-down": "Prestavi predmet nižje",
        "ooui-outline-control-move-up": "Prestavi predmet višje",
        "ooui-outline-control-remove": "Odstrani vnos",
-       "ooui-toolbar-more": "Več"
+       "ooui-toolbar-more": "Več",
+       "ooui-dialog-confirm-title": "Potrdi",
+       "ooui-dialog-confirm-default-prompt": "Ste prepričani?",
+       "ooui-dialog-confirm-default-ok": "V redu",
+       "ooui-dialog-confirm-default-cancel": "Prekliči"
 }
index 7e2692f..6fc0376 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOjs UI v0.1.0-pre (dd888aba5c)
+ * OOjs UI v0.1.0-pre (527ad0ee5a)
  * 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 21:28:55 GMT-0700 (PDT)
+ * Date: Mon Jun 02 2014 12:15:09 GMT-0700 (PDT)
  */
 ( function ( OO ) {
 
@@ -1376,13 +1376,16 @@ OO.ui.Window.prototype.close = function ( data ) {
        }
 
        // Close the window
-       this.opened.resolve();
        // This.closing needs to exist before we emit the closing event so that handlers can call
        // window.close() and trigger the safety check above
        this.closing = $.Deferred();
        this.frame.$content.find( ':focus' ).blur();
        this.emit( 'closing', data );
        this.getTeardownProcess( data ).execute().done( OO.ui.bind( function () {
+               // To do something different with #opened, resolve/reject #opened in the teardown process
+               if ( !this.opened.isResolved() && !this.opened.isRejected() ) {
+                       this.opened.resolve();
+               }
                this.emit( 'close', data );
                this.$element.hide();
                this.visible = false;
@@ -8585,8 +8588,8 @@ OO.ui.ToggleButtonWidget.prototype.setValue = function ( value ) {
                this.setActive( value );
        }
 
-       // Parent method
-       OO.ui.ToggleButtonWidget.super.prototype.setValue.call( this, value );
+       // Parent method (from mixin)
+       OO.ui.ToggleWidget.prototype.setValue.call( this, value );
 
        return this;
 };
index 6c27f57..ef410a3 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOjs UI v0.1.0-pre (dd888aba5c)
+ * OOjs UI v0.1.0-pre (527ad0ee5a)
  * 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 21:28:55 GMT-0700 (PDT)
+ * Date: Mon Jun 02 2014 12:15:09 GMT-0700 (PDT)
  */
 
 /* Textures */