onSelect callback option for ULS
* Correct the dependencies for ext.uls.core, it need not depend on mediawiki.Uri. * Move the setlang function out of ULS core js. * Add a callback function to the example. Change-Id: Ie3598236b2a884580092194c57558ec109d20803
This commit is contained in:
@@ -49,7 +49,10 @@ $wgResourceModules['ext.uls.init'] = array(
|
||||
'scripts' => 'resources/ext.uls.init.js',
|
||||
'localBasePath' => $dir,
|
||||
'remoteExtPath' => 'UniversalLanguageSelector',
|
||||
'dependencies' => 'ext.uls.core',
|
||||
'dependencies' => array(
|
||||
'mediawiki.Uri',
|
||||
'ext.uls.core',
|
||||
),
|
||||
'position' => 'top',
|
||||
);
|
||||
|
||||
@@ -79,7 +82,6 @@ $wgResourceModules['ext.uls.core'] = array(
|
||||
'localBasePath' => $dir,
|
||||
'remoteExtPath' => 'UniversalLanguageSelector',
|
||||
'dependencies' => array(
|
||||
'mediawiki.Uri',
|
||||
'ext.uls.data',
|
||||
'ext.uls.lcd',
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user