From 66e769cab0ede2124f1c8ff38c7189d719869232 Mon Sep 17 00:00:00 2001 From: Mariela Michalek Date: Fri, 18 Apr 2014 17:54:24 -0300 Subject: [PATCH] set styles --- .../main/javascript/libraries/bootstrap/BootstrapDialog.js | 4 ++++ mindplot/src/main/javascript/widget/LinkEditor.js | 1 + mindplot/src/main/javascript/widget/NoteEditor.js | 1 + 3 files changed, 6 insertions(+) diff --git a/mindplot/src/main/javascript/libraries/bootstrap/BootstrapDialog.js b/mindplot/src/main/javascript/libraries/bootstrap/BootstrapDialog.js index 38ab504c..d1962f25 100644 --- a/mindplot/src/main/javascript/libraries/bootstrap/BootstrapDialog.js +++ b/mindplot/src/main/javascript/libraries/bootstrap/BootstrapDialog.js @@ -81,6 +81,10 @@ var BootstrapDialog = new Class({ this._native.find('.modal-body').append(content); }, + setStyle:function(width){ + this._native.find('.modal-dialog').css("width",width); + }, + close: function() { this._native.modal('hide'); }, diff --git a/mindplot/src/main/javascript/widget/LinkEditor.js b/mindplot/src/main/javascript/widget/LinkEditor.js index e66f852a..509021dd 100644 --- a/mindplot/src/main/javascript/widget/LinkEditor.js +++ b/mindplot/src/main/javascript/widget/LinkEditor.js @@ -27,6 +27,7 @@ mindplot.widget.LinkEditor = new Class({ acceptButton: true, removeButton: true }); + this.setStyle("500px"); this._model = model; var panel = this._buildPanel(model); this.setContent(panel); diff --git a/mindplot/src/main/javascript/widget/NoteEditor.js b/mindplot/src/main/javascript/widget/NoteEditor.js index 0b516a46..72eaff6e 100644 --- a/mindplot/src/main/javascript/widget/NoteEditor.js +++ b/mindplot/src/main/javascript/widget/NoteEditor.js @@ -9,6 +9,7 @@ mindplot.widget.NoteEditor = new Class({ acceptButton: true, removeButton: true }); + this.setStyle("500px"); this._model = model; var panel = this._buildPanel(model); this.setContent(panel);