Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[webui] rename and move tableEditor's save and revert buttons to the …
…beginning of the row to match other panels
  • Loading branch information
Jalle19 authored and perexg committed Aug 8, 2014
1 parent 0d14b8b commit b4cbe7b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/webui/static/app/tableeditor.js
Expand Up @@ -108,15 +108,15 @@ tvheadend.tableEditor = function(title, dtable, cm, rec, plugins, store,
var saveBtn = new Ext.Toolbar.Button({
tooltip: 'Save any changes made (Changed cells have red borders)',
iconCls: 'save',
text: "Save changes",
text: "Save",
handler: saveChanges,
disabled: true
});

var rejectBtn = new Ext.Toolbar.Button({
tooltip: 'Revert any changes made (Changed cells have red borders)',
iconCls: 'undo',
text: "Revert changes",
text: "Undo",
handler: function() {
store.rejectChanges();
},
Expand Down Expand Up @@ -151,14 +151,15 @@ tvheadend.tableEditor = function(title, dtable, cm, rec, plugins, store,
selModel: selModel,
stripeRows: true,
tbar: [
saveBtn, rejectBtn, '-',
{
tooltip: 'Create a new entry on the server. '
+ 'The new entry is initially disabled so it must be enabled '
+ 'before it start taking effect.',
iconCls: 'add',
text: 'Add entry',
handler: addRecord
}, '-', delButton, '-', saveBtn, rejectBtn, '->', {
}, '-', delButton, '->', {
text: 'Help',
handler: function() {
new tvheadend.help(title, helpContent);
Expand Down

0 comments on commit b4cbe7b

Please sign in to comment.