X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/9d566b4741eb66bf09b5c7d213aa8541886e100a..573b9004c7bc2a6a2b29335155b4ff55d142c6b6:/src/redakcja/static/js/wiki/view_properties.js diff --git a/src/redakcja/static/js/wiki/view_properties.js b/src/redakcja/static/js/wiki/view_properties.js index 35d00690..5c4c0e8b 100644 --- a/src/redakcja/static/js/wiki/view_properties.js +++ b/src/redakcja/static/js/wiki/view_properties.js @@ -39,13 +39,12 @@ }; class PropertiesPerspective extends $.wiki.SidebarPerspective { - constructor(options) { - let oldCallback = options.callback || function() {}; + vsplitbar = 'WŁAŚCIWOŚCI'; - options.callback = function() { + constructor(options) { + super(options); let self = this; - self.vsplitbar = 'WŁAŚCIWOŚCI'; self.$pane = $("#side-properties"); $("#simple-editor").on('click', '[x-node]', function(e) { @@ -180,11 +179,6 @@ self.$pane.on('click', '#current-delete', function() { self.delete(); }); - - oldCallback.call(this); - }; - - super(options); } edit(element) {