Repository: incubator-drill Updated Branches: refs/heads/0.4.0-incubating [created] 98b208e26
DRILL-1227: Compatibility for non-firefox browsers. Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/42438596 Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/42438596 Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/42438596 Branch: refs/heads/0.4.0-incubating Commit: 42438596cb118f10bb0b8b483df17142c7948d8e Parents: 0d6befc Author: Cliff Buchanan <cbucha...@maprtech.com> Authored: Wed Jul 30 13:41:25 2014 -0700 Committer: Jacques Nadeau <jacq...@apache.org> Committed: Wed Jul 30 18:06:32 2014 -0700 ---------------------------------------------------------------------- exec/java-exec/src/main/resources/rest/www/graph.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/42438596/exec/java-exec/src/main/resources/rest/www/graph.js ---------------------------------------------------------------------- diff --git a/exec/java-exec/src/main/resources/rest/www/graph.js b/exec/java-exec/src/main/resources/rest/www/graph.js index 76f39fa..b65c416 100644 --- a/exec/java-exec/src/main/resources/rest/www/graph.js +++ b/exec/java-exec/src/main/resources/rest/www/graph.js @@ -68,9 +68,9 @@ $(window).load(function () { timetable.sort(function (r1, r2) { if (r1.category == r2.category) { //return r1.name > r2.name; - return r1.start + r2.end > r1.end + r2.start; + return r1.end - r1.start > r2.end - r2.start ? 1 : -1; } - else return r1.category > r2.category; + else return r1.category > r2.category ? 1 : -1; }); return timetable; @@ -271,6 +271,10 @@ $(window).load(function () { } + String.prototype.endsWith = function(suffix) { + return this.indexOf(suffix, this.length - suffix.length) !== -1; + }; + loadprofile(globalconfig.queryid, function (profile) { setupglobalconfig(profile);