dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8ebb99
)
Fix undeclared dependency on jquery.mwExtension
author
Ori Livneh
<ori@wikimedia.org>
Mon, 22 Jun 2015 22:12:35 +0000
(15:12 -0700)
committer
Ori Livneh
<ori@wikimedia.org>
Mon, 22 Jun 2015 22:12:35 +0000
(15:12 -0700)
Since jquery.mwExtension is deprecated, fix the undeclared dependency by making
the module not depend on $.ucFirst rather than by declaring the dependency.
Change-Id: I32b57662464e7dde0f61d6875196764fb61dcfba
resources/src/mediawiki/mediawiki.Title.js
patch
|
blob
|
history
diff --git
a/resources/src/mediawiki/mediawiki.Title.js
b/resources/src/mediawiki/mediawiki.Title.js
index
3efb7ec
..
2fd7bfa
100644
(file)
--- a/
resources/src/mediawiki/mediawiki.Title.js
+++ b/
resources/src/mediawiki/mediawiki.Title.js
@@
-785,7
+785,7
@@
if ( $.inArray( this.namespace, mw.config.get( 'wgCaseSensitiveNamespaces' ) ) !== -1 ) {
return this.title;
} else {
- return
$.ucFirst( this.title
);
+ return
this.title.charAt( 0 ).toUpperCase() + this.title.slice( 1
);
}
},