comparison core.js @ 1055:6bd41ef8b1e0

Slider now enabled optionally based on tag <option name='playhead'/> in interfaces
author Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk>
date Wed, 01 Jul 2015 13:49:01 +0100
parents 329dfa208333
children 99cb3436759e
comparison
equal deleted inserted replaced
1054:5bcf1745e044 1055:6bd41ef8b1e0
1286 } 1286 }
1287 1287
1288 this.commonInterface = new function() { 1288 this.commonInterface = new function() {
1289 this.OptionNode = function(child) { 1289 this.OptionNode = function(child) {
1290 this.type = child.nodeName; 1290 this.type = child.nodeName;
1291 if (this.type == 'check') { 1291 if (this.type == 'option')
1292 {
1293 this.name = child.getAttribute('name');
1294 }
1295 else if (this.type == 'check') {
1292 this.check = child.getAttribute('name'); 1296 this.check = child.getAttribute('name');
1293 if (this.check == 'scalerange') { 1297 if (this.check == 'scalerange') {
1294 this.min = child.getAttribute('min'); 1298 this.min = child.getAttribute('min');
1295 this.max = child.getAttribute('max'); 1299 this.max = child.getAttribute('max');
1296 if (this.min == null) {this.min = 1;} 1300 if (this.min == null) {this.min = 1;}