dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Don't process "all" option in Html::namespaceSelectorOptions"
[lhc/web/wiklou.git]
/
resources
/
src
/
mediawiki.widgets
/
mw.widgets.ComplexTitleInputWidget.js
diff --git
a/resources/src/mediawiki.widgets/mw.widgets.ComplexTitleInputWidget.js
b/resources/src/mediawiki.widgets/mw.widgets.ComplexTitleInputWidget.js
index
030fbb0
..
2c4044d
100644
(file)
--- a/
resources/src/mediawiki.widgets/mw.widgets.ComplexTitleInputWidget.js
+++ b/
resources/src/mediawiki.widgets/mw.widgets.ComplexTitleInputWidget.js
@@
-4,7
+4,7
@@
* @copyright 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
* @copyright 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
-( function (
$, mw
) {
+( function () {
/**
* Like TitleInputWidget, but the namespace has to be input through a separate dropdown field.
/**
* Like TitleInputWidget, but the namespace has to be input through a separate dropdown field.
@@
-108,8
+108,14
@@
*/
mw.widgets.ComplexTitleInputWidget.prototype.setDisabled = function ( disabled ) {
mw.widgets.ComplexTitleInputWidget.parent.prototype.setDisabled.call( this, disabled );
*/
mw.widgets.ComplexTitleInputWidget.prototype.setDisabled = function ( disabled ) {
mw.widgets.ComplexTitleInputWidget.parent.prototype.setDisabled.call( this, disabled );
- this.namespace.setDisabled( disabled );
- this.title.setDisabled( disabled );
+ if ( this.namespace ) {
+ this.namespace.setDisabled( disabled );
+ }
+
+ if ( this.title ) {
+ this.title.setDisabled( disabled );
+ }
+ return this;
};
};
-}(
jQuery, mediaWiki
) );
+}() );