1/* Append a toolbar button */ 2if(window.toolbar != undefined){ 3 toolbar[toolbar.length] = {"type": "PluginIDCount", 4 "title": LANG['plugins']['idcount']['button'], 5 "icon": "../../plugins/idcount/button.png", 6 "key": ""}; 7} 8 9 10function tb_PluginIDCount(btn, props, edid) { 11 PluginIDCount.edid = edid; 12 13 PluginIDCount.getID(); 14} 15 16var PluginIDCount = { 17 edid: null, 18 19 getID: function () { 20 jQuery.post( 21 DOKU_BASE + 'lib/exe/ajax.php', 22 { 23 call: 'idcount_generate' 24 }, 25 function(data) { 26 insertAtCarret(PluginIDCount.edid, data); 27 }, 28 'text' 29 ); 30 } 31}; 32 33