]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
tableeditor: ensure all reload operations are properly processed
authorAdam Sutton <dev@adamsutton.me.uk>
Sat, 2 Feb 2013 12:52:20 +0000 (12:52 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Sat, 2 Feb 2013 12:52:20 +0000 (12:52 +0000)
src/webui/static/app/tableeditor.js

index dc04d1afcd85f2ce3ee3c7d2e2ce9c3f738d6843..c36498d862f75b628820250c13bcba360cc7242f 100644 (file)
@@ -13,13 +13,13 @@ tvheadend.tableEditor = function(title, dtable, cm, rec, plugins, store,
                                op : "get"
                        }
                });
-
-               tvheadend.comet.on(dtable, function(m){
-                       if (m.reload)
-                               store.reload();
-               });
        }
 
+       tvheadend.comet.on(dtable, function(m){
+               if (m.reload)
+                       store.reload();
+       });
+
        function addRecord() {
                Ext.Ajax.request({
                        url : "tablemgr",