Adding edittable version 2023-01-14 (66785d9).
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
51b386fcf7
commit
778f9ac0bf
101 changed files with 56770 additions and 0 deletions
25
plugins/55/edittable/script/editbutton.js
Normal file
25
plugins/55/edittable/script/editbutton.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
/**
|
||||
* Adjust the top margin and make buttons visible
|
||||
*/
|
||||
jQuery(function () {
|
||||
'use strict';
|
||||
var $editbutton = jQuery('.dokuwiki div.editbutton_table');
|
||||
if (!$editbutton.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
// unhide the buttons - we have JavaScript
|
||||
$editbutton.show();
|
||||
|
||||
// determine the bottom margin of the table above and remove it from our button
|
||||
var margin = 0;
|
||||
var $tablediv = $editbutton.prev('div.table');
|
||||
if (!$tablediv.length) {
|
||||
return;
|
||||
}
|
||||
margin += parseFloat($tablediv.css('margin-bottom'));
|
||||
margin += parseFloat($tablediv.find('table').css('margin-bottom'));
|
||||
margin += 1; // for the border
|
||||
|
||||
$editbutton.css('margin-top', margin * -1);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue