X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/1d56a243018175d9f384e995e1cf4531fcf0c648..0e2f63417bf8442152e237949ba78abcc52b5157:/modules/documentCanvas/canvas/widgets.js diff --git a/modules/documentCanvas/canvas/widgets.js b/modules/documentCanvas/canvas/widgets.js index 9563785..570bd0b 100644 --- a/modules/documentCanvas/canvas/widgets.js +++ b/modules/documentCanvas/canvas/widgets.js @@ -9,7 +9,32 @@ return { return $('') .addClass('canvas-widget canvas-widget-label') .text(tag + (klass ? ' / ' + klass : '')); + }, + + footnoteHandler: function(clickHandler) { + var mydom = $('') + .addClass('canvas-widget canvas-widget-footnote-handle') + .css('display', 'inline') + .show(); + + mydom.click(function(e) { + e.stopPropagation(); + clickHandler(); + }); + + return mydom; + }, + + hideButton: function(clickHandler) { + var mydom = $('x') + .addClass('canvas-widget canvas-widget-hide-button'); + mydom.click(function(e) { + e.stopPropagation(); + clickHandler(); + }); + return mydom; } + }; }); \ No newline at end of file