Update OOjs UI to v0.1.0-pre (0e50d2e336)

New changes:
1283a33 Localisation updates from https://translatewiki.net.
0e50d2e Initialise dir property and use a getter

Change-Id: Ieb469d38e881cf7de284a987301626a2f945d2df
This commit is contained in:
Roan Kattouw 2014-08-06 13:56:55 +01:00
parent 13a14c70c6
commit 47353ec309
5 changed files with 23 additions and 12 deletions

View file

@ -15,14 +15,15 @@
"Xiaomingyan",
"Yfdyh000",
"Zhangjintao",
"乌拉跨氪"
"乌拉跨氪",
"Great Brightstar"
]
},
"ooui-outline-control-move-down": "下移项",
"ooui-outline-control-move-up": "上移项",
"ooui-outline-control-remove": "删除项",
"ooui-toolbar-more": "更多",
"ooui-dialog-message-accept": "",
"ooui-dialog-message-accept": "确定",
"ooui-dialog-message-reject": "取消",
"ooui-dialog-process-error": "发生一些错误",
"ooui-dialog-process-dismiss": "解除",

View file

@ -1,12 +1,12 @@
/*!
* OOjs UI v0.1.0-pre (dd294dc785)
* OOjs UI v0.1.0-pre (0e50d2e336)
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 20112014 OOjs Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2014-07-30T23:10:53Z
* Date: 2014-08-06T12:56:55Z
*/
.oo-ui-dialog-content > .oo-ui-window-head,
.oo-ui-dialog-content > .oo-ui-window-body,

View file

@ -1,12 +1,12 @@
/*!
* OOjs UI v0.1.0-pre (dd294dc785)
* OOjs UI v0.1.0-pre (0e50d2e336)
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 20112014 OOjs Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2014-07-30T23:10:53Z
* Date: 2014-08-06T12:56:55Z
*/
.oo-ui-dialog-content > .oo-ui-window-head,
.oo-ui-dialog-content > .oo-ui-window-body,

View file

@ -1,12 +1,12 @@
/*!
* OOjs UI v0.1.0-pre (dd294dc785)
* OOjs UI v0.1.0-pre (0e50d2e336)
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 20112014 OOjs Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2014-07-30T23:10:53Z
* Date: 2014-08-06T12:56:55Z
*/
( function ( OO ) {
@ -1114,6 +1114,7 @@ OO.ui.Frame = function OoUiFrame( config ) {
// Properties
this.loading = null;
this.config = config;
this.dir = null;
// Initialize
this.$element
@ -1287,7 +1288,7 @@ OO.ui.Frame.prototype.load = function () {
win = this.$element.prop( 'contentWindow' );
doc = win.document;
// Figure out directionality:
// Cache directionality
this.dir = OO.ui.Element.getDir( this.$element ) || 'ltr';
// Initialize contents
@ -1298,7 +1299,7 @@ OO.ui.Frame.prototype.load = function () {
doc.write(
'<!doctype html>' +
'<html>' +
'<body class="oo-ui-frame-content oo-ui-' + this.dir + '" dir="' + this.dir + '">' +
'<body class="oo-ui-frame-content oo-ui-' + this.getDir() + '" dir="' + this.getDir() + '">' +
'</body>' +
'</html>'
);
@ -1331,6 +1332,15 @@ OO.ui.Frame.prototype.setSize = function ( width, height ) {
return this;
};
/**
* Get the directionality of the frame
*
* @return {string} Directionality, 'ltr' or 'rtl'
*/
OO.ui.Frame.prototype.getDir = function () {
return this.dir;
};
/**
* Container for elements.
*

View file

@ -1,12 +1,12 @@
/*!
* OOjs UI v0.1.0-pre (dd294dc785)
* OOjs UI v0.1.0-pre (0e50d2e336)
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 20112014 OOjs Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2014-07-30T23:10:53Z
* Date: 2014-08-06T12:56:55Z
*/
/* Textures */