You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
746 B
22 lines
746 B
{
|
|
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);
|
|
}
|
|
}
|