parent
476d139005
commit
46d6448e3b
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
plugin: 'vsms',
|
||||||
|
url: '//plugins.lexonomy.cjvt.si',
|
||||||
|
editor: function(div, entry, uneditable) {
|
||||||
|
$(div).append('<p><span id="load-pre-status">INIT</span><span id="load-status"></span></p>');
|
||||||
|
var progress_ctr = 2, config = null;
|
||||||
|
|
||||||
|
$.getJSON(this.url + "/" + this.plugin + "/config.json", function(local_config) {
|
||||||
|
config = local_config;
|
||||||
|
if(--progress_ctr == 0) plugin_load(config, div, entry);
|
||||||
|
});
|
||||||
|
|
||||||
|
var script_url = this.url + "/plugin-loader.js";
|
||||||
|
$.ajax({ dataType: "script", cache: true, url: script_url, success: function () {
|
||||||
|
if(--progress_ctr == 0) plugin_load(config, div, entry);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
harvester: function(div) {
|
||||||
|
if(typeof plugin_save !== 'undefined') return plugin_save(div);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue