X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/796338e669626012da93ebea5ec7afa482a70ed7..9255c2fe5083c35b4f6e5c098813842025f4772d:/src/editor/views/dialog/dialog.js?ds=sidebyside diff --git a/src/editor/views/dialog/dialog.js b/src/editor/views/dialog/dialog.js index dff0b6f..642342d 100644 --- a/src/editor/views/dialog/dialog.js +++ b/src/editor/views/dialog/dialog.js @@ -28,7 +28,9 @@ define(function(require) { show: function() { this.setElement(this.template(_.extend({ executeButtonText: null, - cancelButtonText: null + cancelButtonText: null, + cssClass: '', + closeButton: true }, this.options))); var body = this.$('.modal-body'); @@ -96,6 +98,10 @@ define(function(require) { this.$('.btn, button').toggleClass('disabled', !toggle); this.$('textarea').attr('disabled', !toggle); this.actionsDisabled = !toggle; + }, + setContentView: function(view) { + var body = this.$('.modal-body'); + body.append(view); } });