Hi
I got it figured out.
I added 'oojs-ui-core', 'oojs-ui-windows' in Resources.php
'mediawiki.special.movePage' => [
'scripts' =>
'resources/src/mediawiki.special/mediawiki.special.movePage.js',
'dependencies' => [
'jquery.byteLimit',
'mediawiki.widgets',
'oojs-ui-core',
'oojs-ui-windows'
],
],
Thanks for the help.
Best Regards,
Shanika Ediriweera
Undergraduate
Dept. of Computer Science & Eng.
University of Moratuwa
On 23 February 2017 at 05:59, Shanika Ediriweera <[email protected]>
wrote:
> I found the resource loader file.
>
> What should I add here?
>
> // Windows and dialogs module.
> $modules['oojs-ui-windows'] = [
> 'scripts' => 'resources/lib/oojs-ui/oojs-ui-windows.js',
> 'skinStyles' => $getSkinSpecific( 'windows' ),
> 'dependencies' => 'oojs-ui-core',
> 'messages' => [
> 'ooui-dialog-message-accept',
> 'ooui-dialog-message-reject',
> 'ooui-dialog-process-continue',
> 'ooui-dialog-process-dismiss',
> 'ooui-dialog-process-error',
> 'ooui-dialog-process-retry',
> ],
> 'targets' => [ 'desktop', 'mobile' ],
> ];
>
> Best Regards,
>
> Shanika Ediriweera
> Undergraduate
> Dept. of Computer Science & Eng.
> University of Moratuwa
>
> On 23 February 2017 at 05:40, Shanika Ediriweera <[email protected]
> > wrote:
>
>> Yes. I am working on a special page in the mediawiki core.
>>
>> Could you please tell me where is the resource loader modue located?
>>
>> Best Regards,
>>
>> Shanika Ediriweera
>> Undergraduate
>> Dept. of Computer Science & Eng.
>> University of Moratuwa
>>
>> On 23 February 2017 at 02:15, Bartosz Dziewoński <[email protected]>
>> wrote:
>>
>>> Looks like you're not loading the OOjs UI code you're trying to use.
>>> Assuming that you're writing this as part of MediaWiki (or an extension),
>>> you need to add a dependency on the 'oojs-ui' ResourceLoader module.
>>>
>>> --
>>> Bartosz Dziewoński
>>>
>>> _______________________________________________
>>> Wikitech-l mailing list
>>> [email protected]
>>> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>>
>>
>>
>
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l