From: Sam Stenvall Date: Thu, 7 Aug 2014 08:05:25 +0000 (+0300) Subject: [webui] rename and move tableEditor's save and revert buttons to the beginning of... X-Git-Tag: v4.1~1608 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4cbe7bb57cb520a1ae1b4ee9058b93f5c189685;p=thirdparty%2Ftvheadend.git [webui] rename and move tableEditor's save and revert buttons to the beginning of the row to match other panels --- diff --git a/src/webui/static/app/tableeditor.js b/src/webui/static/app/tableeditor.js index 706e8d2e9..f8b96c76a 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);