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.

23 lines
799 B

{
plugin: 'vsms-py-v4.1',
url: '//plugins.lexonomy.cjvt.si',
ske_gdex: ["Hungarian-bilingual-v1", 300],
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);
}
}