Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
webui: spinner fix
  • Loading branch information
lekma authored and perexg committed Apr 7, 2016
1 parent 957b835 commit 22226e6
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/webui/static/app/idnode.js
Expand Up @@ -337,7 +337,7 @@ tvheadend.IdNodeField = function(conf)
props.xtype = 'checkcolumn';
props.renderer = Ext.ux.grid.CheckColumn.prototype.renderer;
}

return props;
};

Expand All @@ -347,7 +347,7 @@ tvheadend.IdNodeField = function(conf)
return function(v) {
return '<span class="tvh-grid-unset">********</span>';
}

if (this.type === 'time') {
if (this.duration)
return function(v) {
Expand Down Expand Up @@ -426,7 +426,7 @@ tvheadend.IdNodeField = function(conf)
disabled: d,
width: 300
};

/* ComboBox */
if (this['enum']) {

Expand Down Expand Up @@ -459,7 +459,7 @@ tvheadend.IdNodeField = function(conf)
c['forceSelection'] = false;
c['triggerAction'] = 'all';
c['emptyText'] = _('Select {0} ...').replace('{0}', this.text);

combo = true;
}

Expand Down Expand Up @@ -730,14 +730,14 @@ tvheadend.idnode_editor_field = function(f, conf)
}

/* TODO: listeners for regexp?
listeners : {
listeners : {
keyup: function() {
this.store.filter('val', this.getRawValue(), true, false);
},
beforequery: function(queryEvent) {
queryEvent.combo.onLoad();
// prevent doQuery from firing and clearing out my filter.
return false;
return false;
}
}
*/
Expand Down Expand Up @@ -821,7 +821,7 @@ tvheadend.idnode_editor_field = function(f, conf)
maskRe: /[0-9\.]/
});
break;
} else if (f.intmin || f.intmin) {
} else if (f.intmin || f.intmax) {
r = new Ext.ux.form.SpinnerField({
fieldLabel: f.caption,
name: f.id,
Expand Down Expand Up @@ -1010,7 +1010,7 @@ tvheadend.idnode_editor_form = function(uilevel, d, meta, panel, conf)
p = newFieldSet({ title: m.name });
mfs[number] = p;
}
cfs[number] = p;
cfs[number] = p;
}
}
for (var number in groups) {
Expand Down Expand Up @@ -1080,7 +1080,7 @@ tvheadend.idnode_editor = function(_uilevel, item, conf)
function destroy() {
panel.removeAll(true);
}

function build() {
var c = {
showpwd: conf.showpwd,
Expand Down Expand Up @@ -1287,10 +1287,10 @@ tvheadend.idnode_editor_win = function(_uilevel, conf)
uuids = [];
for (var i = 0; i < r.length; i++)
uuids.push(r[i].id);

params['uuid'] = r[0].id;
}

params['meta'] = 1;

conf.win = null;
Expand Down Expand Up @@ -1468,7 +1468,7 @@ tvheadend.idnode_create = function(conf, onlyDefault, cloneValues)
}
});
buttons.push(abuttons.save);

abuttons.apply = new Ext.Button({
tooltip: _('Apply settings'),
text: _('Apply'),
Expand Down Expand Up @@ -2500,7 +2500,7 @@ tvheadend.idnode_form_grid = function(panel, conf)
},
items: [grid]
});

dpanel.add(mpanel);
dpanel.doLayout(false, true);

Expand Down Expand Up @@ -2880,7 +2880,7 @@ tvheadend.idnode_simple = function(panel, conf)
align: 'stretch'
}
});

dpanel.add(mpanel);
dpanel.doLayout(false, true);

Expand Down

0 comments on commit 22226e6

Please sign in to comment.