[Rt-commit] rt branch, lcore, updated. f30ae9ab1f49e2ecc842cab01b07e62211393449

jesse jesse at bestpractical.com
Tue Oct 6 22:36:24 EDT 2009


The branch, lcore has been updated
       via  f30ae9ab1f49e2ecc842cab01b07e62211393449 (commit)
      from  679d4d18d6f0765cda10c4828eab1b931d668e2e (commit)

Summary of changes:
 share/web/static/css/rulebuilder.css |   20 ++++++++++++++++++--
 share/web/static/js/rulebuilder.js   |   13 +++++++++----
 2 files changed, 27 insertions(+), 6 deletions(-)

- Log -----------------------------------------------------------------
commit f30ae9ab1f49e2ecc842cab01b07e62211393449
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Tue Oct 6 22:36:14 2009 -0400

    tiny ui cleanups for rulebuilder

diff --git a/share/web/static/css/rulebuilder.css b/share/web/static/css/rulebuilder.css
index cccd397..394154d 100644
--- a/share/web/static/css/rulebuilder.css
+++ b/share/web/static/css/rulebuilder.css
@@ -55,7 +55,22 @@ div.function span.return-type,
 }
 
 div#expressionbuilder {
-    margin-left: 24em;
+	top: 0;
+	bottom: 0;
+	left: 0;
+	right: 0;
+	background: #fff;
+}
+
+div#expressionbuilder .panel {
+	position: absolute;
+	top: 0em;
+	left: 0em;
+	padding-left: 21em;
+	background: #fff;
+	bottom: 0em;
+	z-index: 999;
+	right: 0em;
 }
 
 #expressionbuilder {
@@ -71,11 +86,12 @@ div#expressionbuilder {
 	position: absolute;
 	top: 0;
 	left: 0;
-	width: 21em;
+	width: 18em;
 	bottom: 0;
 	padding: 0.5em;
 	background: #fff;
 	overflow: auto;
+	z-index: 1000;
 	-moz-border-radius: 0.5em;
 
 }
diff --git a/share/web/static/js/rulebuilder.js b/share/web/static/js/rulebuilder.js
index aa59189..3e7e2f7 100644
--- a/share/web/static/js/rulebuilder.js
+++ b/share/web/static/js/rulebuilder.js
@@ -77,8 +77,11 @@ RuleBuilder.prototype.init = function () {
 
     this.ebuilder = ebuilder;
 
+	ebuilder.append('<div class="panel">');
+	this.panel = jQuery('.panel');
+
     jQuery._div_({'class': 'context top-context'})
-        .appendTo(ebuilder);
+        .appendTo(this.panel);
 
     this.top_context = new RuleBuilder.Context(
         'Bool',
@@ -126,14 +129,16 @@ RuleBuilder.prototype.init = function () {
 
     this.focus(this.top_context);
 
+
+
     jQuery._div_({'class': 'ohai'})
-        .text("OH HAI")
+        .text("Show serialized expression")
         .click(function(e){
             that.top_context.traverse(function(ctx) {
                 jQuery(ctx.element).append(ctx.state());
             });
             alert(that.top_context.serialize())})
-        .prependTo(ebuilder);
+        .prependTo(this.panel);
 
     jQuery._input_({'class': 'done', 'type': 'submit', 'value': 'Done' })
         .text("Done")
@@ -141,7 +146,7 @@ RuleBuilder.prototype.init = function () {
             if (that.finalize)
                 that.finalize.apply(that);
         })
-        .prependTo(ebuilder);
+        .prependTo(this.panel);
 
 };
 

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


More information about the Rt-commit mailing list