X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/9b10c9eeb755d831eb0c6f047931af30d954f719..fef7f24f34c07be9d9aff6db434e997f9a1f3451:/project/static/js/editor.js diff --git a/project/static/js/editor.js b/project/static/js/editor.js index 69c27b1e..e37228ce 100644 --- a/project/static/js/editor.js +++ b/project/static/js/editor.js @@ -146,7 +146,7 @@ Panel.prototype.connectToolbar = function() var extra_buttons = $('span.panel-toolbar-extra', toolbar); var placeholder = $('div.panel-toolbar span.panel-toolbar-extra', this.wrap); placeholder.replaceWith(extra_buttons); - extra_buttons.hide(); + placeholder.hide(); var action_buttons = $('button', extra_buttons); @@ -460,8 +460,10 @@ Editor.prototype.sendMergeRequest = function (message) { if( $('.panel-wrap.changed').length != 0) alert("There are unsaved changes - can't commit."); - var self = this; - $.log('URL !: ', $('#commit-dialog form').attr('action')); + var self = this; + + $('#commit-dialog-related-issues input:checked'). + each(function() { message += ' refs #' + $(this).val(); }); $.ajax({ url: $('#commit-dialog form').attr('action'),