X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/1d56a243018175d9f384e995e1cf4531fcf0c648..f0a4549eb9a1adc546f31c3e8b0c5958fbc28edd:/modules/documentCanvas/canvas/widgets.js?ds=sidebyside 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