Browse Source

Try a stepper for the serial port

Scott Lahteine 9 years ago
parent
commit
53f6bbdfe0

+ 3
- 2
Marlin/configurator/css/configurator.css View File

@@ -14,7 +14,7 @@ img { display: none; }
14 14
 label, input, select, textarea { display: block; float: left; margin: 1px 0; }
15 15
 label.newline, textarea { clear: both; }
16 16
 label { width: 130px; height: 1em; padding: 10px 480px 10px 1em; margin-right: -470px; text-align: right; }
17
-input[type="text"], select, .jstepper { margin: 0.75em 0 0; }
17
+input[type="text"], select { margin: 0.75em 0 0; }
18 18
 input[type="checkbox"], input[type="radio"], input[type="file"] { margin: 1em 0 0; }
19 19
 #config_form { display: block; background: #DDD; padding: 20px; color: #000; }
20 20
 /*#config_text, #config_adv_text { font-family: "Andale mono", monospace; clear: both; }*/
@@ -24,4 +24,5 @@ input:disabled { color: #BBB; }
24 24
 .clear { clear: both; }
25 25
 h1, h2, h3, h4, h5, h6 { clear: both; }
26 26
 h2 { margin: 0; padding: 1em 0 0; }
27
-.jstepper { display: block; }
27
+#serial_stepper { padding-top: 0.75em; display: block; float: left; }
28
+#SERIAL_PORT { display: none; }

+ 4
- 5
Marlin/configurator/js/configurator.js View File

@@ -247,10 +247,10 @@ var configuratorApp = (function(){
247 247
       this.initField('TEMP_SENSOR_2');
248 248
       this.initField('TEMP_SENSOR_BED');
249 249
 
250
-/*
250
+
251 251
       $('#serial_stepper').jstepper({
252 252
         min: 0,
253
-        max: 3,
253
+        max: 7,
254 254
         val: $('#SERIAL_PORT').val(),
255 255
         arrowWidth: '18px',
256 256
         arrowHeight: '15px',
@@ -258,11 +258,10 @@ var configuratorApp = (function(){
258 258
         acolor: '#F70',
259 259
         hcolor: '#FF0',
260 260
         id: 'select-me',
261
-        stepperClass: 'inner',
262 261
         textStyle: {width:'1.5em',fontSize:'120%',textAlign:'center'},
263
-        // onChange: function(v) { },
262
+        onChange: function(v) { $('#SERIAL_PORT').val(v).trigger('change'); }
264 263
       });
265
-*/
264
+
266 265
 
267 266
       // prettyPrint();
268 267
     },

Loading…
Cancel
Save