New changes:
4f4fc2c Localisation updates from https://translatewiki.net.
ea88cce Localisation updates from https://translatewiki.net.
37af34f Add the ability to clear the SearchWidget
1cd4b32 Make PopupWidget clippable.
81f2edc Localisation updates from https://translatewiki.net.
fa6e8e5 Make popup toolgroup labels a little closer to their icons
Change-Id: I63fb1f9edb24a86cc882b204075540427ac4d11b
"ooui-dialog-action-close": "Slütj",
"ooui-outline-control-move-down": "Element efter onern sküüw",
"ooui-outline-control-move-up": "Element efter boowen sküüw",
+ "ooui-outline-control-remove": "Element wechnem",
"ooui-toolbar-more": "Muar"
}
\ No newline at end of file
"ooui-dialog-action-close": "બંધ કરો",
"ooui-outline-control-move-down": "વસ્તુ નીચે ખસેડો",
"ooui-outline-control-move-up": "વસ્તુ ઉપર ખસેડો",
+ "ooui-outline-control-remove": "વસ્તુ હટાવો",
"ooui-toolbar-more": "વધુ"
}
\ No newline at end of file
"ooui-dialog-action-close": "Zamknij",
"ooui-outline-control-move-down": "Przenieś niżej",
"ooui-outline-control-move-up": "Przenieś wyżej",
- "ooui-outline-control-remove": "Usuń przedmiot",
+ "ooui-outline-control-remove": "Usuń element",
"ooui-toolbar-more": "Więcej"
}
\ No newline at end of file
"John Reid"
]
},
- "ooui-outline-control-remove": "Remuiv eitem"
+ "ooui-dialog-action-close": "Claise",
+ "ooui-outline-control-move-down": "Muiv eetem doon",
+ "ooui-outline-control-move-up": "Muiv eetem up",
+ "ooui-outline-control-remove": "Remuiv eitem",
+ "ooui-toolbar-more": "Mair"
}
\ No newline at end of file
/*!
- * OOjs UI v0.1.0-pre (3b434d5388)
+ * OOjs UI v0.1.0
* 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 Mar 21 2014 11:06:28 GMT-0700 (PDT)
+ * Date: Mon Mar 24 2014 17:35:46 GMT-0700 (PDT)
*/
( function () {
// Mixin constructors
OO.ui.LabeledElement.call( this, this.$( '<div>' ), config );
+ OO.ui.ClippableElement.call( this, this.$( '<div>' ), config );
// Properties
this.visible = false;
this.$popup = this.$( '<div>' );
this.$head = this.$( '<div>' );
- this.$body = this.$( '<div>' );
+ this.$body = this.$clippable;
this.$tail = this.$( '<div>' );
this.$container = config.$container || this.$( 'body' );
this.autoClose = !!config.autoClose;
OO.mixinClass( OO.ui.PopupWidget, OO.ui.LabeledElement );
+OO.mixinClass( OO.ui.PopupWidget, OO.ui.ClippableElement );
+
/* Events */
/**
*/
OO.ui.PopupWidget.prototype.show = function () {
if ( !this.visible ) {
+ this.setClipping( true );
this.$element.show();
this.visible = true;
this.emit( 'show' );
*/
OO.ui.PopupWidget.prototype.hide = function () {
if ( this.visible ) {
+ this.setClipping( false );
this.$element.hide();
this.visible = false;
this.emit( 'hide' );
return this.query;
};
+/**
+ * Reset the widget to initial value.
+ */
+OO.ui.SearchWidget.prototype.clear = function () {
+ this.query.setValue( '' );
+};
+
/**
* Get the results list.
*
/*!
- * OOjs UI v0.1.0-pre (3b434d5388)
+ * OOjs UI v0.1.0
* 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 Mar 21 2014 11:06:28 GMT-0700 (PDT)
+ * Date: Mon Mar 24 2014 17:35:46 GMT-0700 (PDT)
*/
/* Textures */
}
.oo-ui-popupToolGroup.oo-ui-iconedElement .oo-ui-popupToolGroup-handle .oo-ui-labeledElement-label {
- margin-left: 3.25em;
+ margin-left: 3em;
}
.oo-ui-popupToolGroup.oo-ui-indicatedElement .oo-ui-popupToolGroup-handle .oo-ui-labeledElement-label {
display: inline-block;
width: 2em;
height: 2em;
- margin-right: 0.5em;
+ margin-right: 0.25em;
vertical-align: middle;
}
cursor: default;
}
+.oo-ui-popupWidget-body {
+ clear: both;
+}
+
.oo-ui-buttonGroupWidget {
border-radius: 0.3em;
}