From b4cbe7bb57cb520a1ae1b4ee9058b93f5c189685 Mon Sep 17 00:00:00 2001 From: Sam Stenvall Date: Thu, 7 Aug 2014 11:05:25 +0300 Subject: [PATCH] [webui] rename and move tableEditor's save and revert buttons to the beginning of the row to match other panels --- src/webui/static/app/tableeditor.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/webui/static/app/tableeditor.js b/src/webui/static/app/tableeditor.js index 706e8d2e..f8b96c76 100644 --- a/src/webui/static/app/tableeditor.js +++ b/src/webui/static/app/tableeditor.js @@ -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);