mirror of
https://github.com/cosmocode/dokuwiki-plugin-struct.git
synced 2025-08-13 13:37:20 +00:00
12
script.js
12
script.js
@ -4,4 +4,16 @@ jQuery(function(){
|
||||
jQuery('input.struct_date').datepicker({
|
||||
dateFormat: 'yy-mm-dd'
|
||||
});
|
||||
|
||||
jQuery('button.struct_img').click(function (event) {
|
||||
var input_id = event.target.id.substr(0,event.target.id.length-'Button'.length);
|
||||
window.open(
|
||||
DOKU_BASE+"lib/exe/mediamanager.php?ns=:"+'&edid='+encodeURIComponent(input_id) + '&onselect=insertStructImage',
|
||||
'mediaselect',
|
||||
'width=750,height=500,left=20,top=20,scrollbars=yes,resizable=yes'); //
|
||||
});
|
||||
|
||||
window.insertStructImage = function(edid, mediaid, opts, align) {
|
||||
jQuery('#'+edid).val(mediaid).change();
|
||||
};
|
||||
});
|
||||
|
Reference in New Issue
Block a user