[webui] rename and move tableEditor's save and revert buttons to the beginning of the row to match other panels

This commit is contained in:
Sam Stenvall 2014-08-07 11:05:25 +03:00 committed by Jaroslav Kysela
parent 0d14b8b716
commit b4cbe7bb57

View file

@ -108,7 +108,7 @@ 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
});
@ -116,7 +116,7 @@ tvheadend.tableEditor = function(title, dtable, cm, rec, plugins, store,
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();
},
@ -151,6 +151,7 @@ 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 '
@ -158,7 +159,7 @@ tvheadend.tableEditor = function(title, dtable, cm, rec, plugins, store,
iconCls: 'add',
text: 'Add entry',
handler: addRecord
}, '-', delButton, '-', saveBtn, rejectBtn, '->', {
}, '-', delButton, '->', {
text: 'Help',
handler: function() {
new tvheadend.help(title, helpContent);