]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
[webui] rename and move tableEditor's save and revert buttons to the beginning of...
authorSam Stenvall <neggelandia@gmail.com>
Thu, 7 Aug 2014 08:05:25 +0000 (11:05 +0300)
committerJaroslav Kysela <perex@perex.cz>
Fri, 8 Aug 2014 15:37:46 +0000 (17:37 +0200)
src/webui/static/app/tableeditor.js

index 706e8d2e9fe5e9c67fbdbdd5f2ee796c6c95f8e6..f8b96c76ac0b912df88f9bfc0e7a017a2d55e671 100644 (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);