Add event onPluginsReady
This commit is contained in:
parent
2a6ed8f973
commit
0b2a3aec7e
|
@ -330,6 +330,10 @@ if (Common === undefined) {
|
||||||
_postMessage({event:'onRequestCreateNew'});
|
_postMessage({event:'onRequestCreateNew'});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
pluginsReady: function() {
|
||||||
|
_postMessage({ event: 'onPluginsReady' });
|
||||||
|
},
|
||||||
|
|
||||||
on: function(event, handler){
|
on: function(event, handler){
|
||||||
var localHandler = function(event, data){
|
var localHandler = function(event, data){
|
||||||
handler.call(me, data)
|
handler.call(me, data)
|
||||||
|
|
|
@ -237,6 +237,7 @@ define([
|
||||||
this.api.asc_pluginsRegister('', arr);
|
this.api.asc_pluginsRegister('', arr);
|
||||||
if (storePlugins.hasVisible())
|
if (storePlugins.hasVisible())
|
||||||
Common.NotificationCenter.trigger('tab:visible', 'plugins', true);
|
Common.NotificationCenter.trigger('tab:visible', 'plugins', true);
|
||||||
|
Common.Gateway.pluginsReady();
|
||||||
},
|
},
|
||||||
|
|
||||||
onAddPlugin: function (model) {
|
onAddPlugin: function (model) {
|
||||||
|
|
|
@ -263,6 +263,7 @@ define([
|
||||||
arr.push(plugin);
|
arr.push(plugin);
|
||||||
});
|
});
|
||||||
me.api.asc_pluginsRegister('', arr);
|
me.api.asc_pluginsRegister('', arr);
|
||||||
|
Common.Gateway.pluginsReady();
|
||||||
},
|
},
|
||||||
|
|
||||||
getPlugins: function(pluginsData, fetchFunction) {
|
getPlugins: function(pluginsData, fetchFunction) {
|
||||||
|
|
Loading…
Reference in a new issue