diff --git a/public_html/static/css/jsde.base.css b/public_html/static/css/jsde.base.css index e4607dd..32529ed 100755 --- a/public_html/static/css/jsde.base.css +++ b/public_html/static/css/jsde.base.css @@ -45,6 +45,23 @@ div.window-outer bottom: 0px; } +div.window-inner-wrapper +{ + position: absolute; + top: 0px; + bottom: 0px; + left: 0px; + right: 0px; + overflow-y: auto; + overflow-x: auto; +} + +.window-noscroll +{ + overflow-x: hidden !important; + overflow-y: hidden !important; +} + div.window-close { float: right; diff --git a/public_html/static/css/openng.css b/public_html/static/css/openng.css index 5aead33..5677897 100644 --- a/public_html/static/css/openng.css +++ b/public_html/static/css/openng.css @@ -77,6 +77,12 @@ form.inline color: white; } +.pure-button.okay +{ + background-color: #148C29; + color: white; +} + .pure-button.search { background-color: #152DBA; @@ -104,10 +110,15 @@ form.inline h1.form { font-size: 16px; - margin-top: 7px; + margin-top: 0px; margin-bottom: 6px; } +.form-block +{ + margin-bottom: 5px; +} + .pure-form label { font-size: 95%; @@ -128,3 +139,26 @@ textarea { height: 90px; } + +.toolbarwindow-contents +{ + position: absolute; + padding: 7px; + top: 0px; + left: 0px; + right: 0px; + bottom: 38px; + overflow-x: hidden; + overflow-y: auto; +} + +.toolbarwindow-toolbar +{ + position: absolute; + padding: 4px; + height: 30px; + left: 0px; + right: 0px; + bottom: 0px; + text-align: right; +} diff --git a/public_html/static/js/jsde.js b/public_html/static/js/jsde.js index acf86e8..59612f5 100755 --- a/public_html/static/js/jsde.js +++ b/public_html/static/js/jsde.js @@ -90,6 +90,8 @@ function JsdeWindow(options) if(typeof options.min_height === "undefined") { this.min_height = 120; } if(typeof options.resizable === "undefined") { this.resizable = true; } + if(typeof options.noscroll === "undefined") { this.noscroll = false; } + this.SetPosition(this.x, this.y); this.SetSize(this.width, this.height); @@ -106,6 +108,11 @@ function JsdeWindow(options) $(this._outer).find(".window-resizer").mousedown(this._HandleStartResize.bind(this)); + if(this.noscroll) + { + $(this._outer).find(".window-inner-wrapper").addClass("window-noscroll"); + } + this.BringToForeground(); } diff --git a/public_html/static/js/openng.js b/public_html/static/js/openng.js index a1fa13f..9f3f56b 100644 --- a/public_html/static/js/openng.js +++ b/public_html/static/js/openng.js @@ -41,7 +41,8 @@ $(function(){ y: 40, title: "Create new node", contents: "Loading...", - source_url: "/nodes/create" + source_url: "/nodes/create", + noscroll: true }); }); diff --git a/public_html/templates/index.tpl b/public_html/templates/index.tpl index 573c725..208a366 100644 --- a/public_html/templates/index.tpl +++ b/public_html/templates/index.tpl @@ -68,8 +68,9 @@
-
- +
+
+
diff --git a/public_html/templates/nodes/create.tpl b/public_html/templates/nodes/create.tpl index 3fba6bc..b63edd0 100644 --- a/public_html/templates/nodes/create.tpl +++ b/public_html/templates/nodes/create.tpl @@ -1,41 +1,48 @@
-
-
-

Node

-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
-

Properties

+
+
+
+
+

Node

+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
-
- - -
- -
- - +
+
+

Properties

+
+ +
+ + +
+ +
+ + +
+
+ +