From b9b6b0eb2c174c55af47458da407f45553c5f51b Mon Sep 17 00:00:00 2001
From: Amanda Ghassaei <amandaghassaei@gmail.com>
Date: Sun, 1 Feb 2015 14:36:07 -0500
Subject: [PATCH] part slider

---
 js/menus/PartMenuView.js | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/js/menus/PartMenuView.js b/js/menus/PartMenuView.js
index 50f28204..0ba2011e 100644
--- a/js/menus/PartMenuView.js
+++ b/js/menus/PartMenuView.js
@@ -21,6 +21,12 @@ PartMenuView = Backbone.View.extend({
     render: function(){
         if (this.appState.get("currentTab") != "part") return;
         this.$el.html(this.template(this.model.attributes));
+
+        $('#columnSepSlider').slider({
+            formatter: function(value) {
+                return value + "%";
+            }
+        });
     },
 
     template: _.template('\
@@ -33,7 +39,8 @@ PartMenuView = Backbone.View.extend({
                     <% }); %>\
                 </ul>\
             </div><br/><br/>\
-        Column Separation:<br/>\
+        Column Separation:&nbsp;&nbsp;<input id="columnSepSlider" data-slider-id="ex1Slider" type="text" data-slider-min="0" data-slider-max="50" data-slider-step="1" data-slider-value="<%= scale %>"/>\
+        <br/><input id="columnSep" value="<%= scale %>" placeholder="enter scale" class="form-control" type="text"><br/>\<br/>\
         ')
 
 });
\ No newline at end of file
-- 
GitLab