mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 20:09:44 +00:00
create ponto module to communitace with infobox builder UI in iframe
This commit is contained in:
parent
2b5ba08159
commit
24488ba89b
20
js/PortableInfoboxBuilderPonto.js
Normal file
20
js/PortableInfoboxBuilderPonto.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
'use strict';
|
||||
|
||||
define('wikia.infoboxbuilder.ponto', ['wikia.window', 'ponto'], function (window, ponto) {
|
||||
function InfoboxBuilderPonto() {
|
||||
this.isWikiaContext = function () {
|
||||
return {
|
||||
isWikiaContext: true,
|
||||
isLoggedIn: window.wqUserName !== null ? true : false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// PontoBaseHandler extension pattern - check Ponto documentation for details
|
||||
ponto.PontoBaseHandler.derive(InfoboxBuilderPonto);
|
||||
InfoboxBuilderPonto.getInstance = function() {
|
||||
return new InfoboxBuilderPonto();
|
||||
};
|
||||
|
||||
return InfoboxBuilderPonto;
|
||||
});
|
Loading…
Reference in a new issue