From 075aac449c1a71fb26f925deefb4d9520bbd9a77 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 5 Sep 2012 12:05:01 +0200 Subject: [PATCH] minor timeout voodoo --- source/Ox.UI/js/List/TableList.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/Ox.UI/js/List/TableList.js b/source/Ox.UI/js/List/TableList.js index 75f8525d..7264949b 100644 --- a/source/Ox.UI/js/List/TableList.js +++ b/source/Ox.UI/js/List/TableList.js @@ -380,11 +380,11 @@ Ox.TableList = function(options, self) { // so we use a timeout for now setTimeout(function() { that.$body.options({sort: self.options.sort}); + that.gainFocus().triggerEvent('sort', { + key: self.options.sort[0].key, + operator: self.options.sort[0].operator + }); }, 10); - that.gainFocus().triggerEvent('sort', { - key: self.options.sort[0].key, - operator: self.options.sort[0].operator - }); } function constructHead() {