diff options
author | Cliff Buchanan <cbuchanan@maprtech.com> | 2014-07-30 13:41:25 -0700 |
---|---|---|
committer | Jacques Nadeau <jacques@apache.org> | 2014-07-30 18:06:32 -0700 |
commit | 42438596cb118f10bb0b8b483df17142c7948d8e (patch) | |
tree | e5feccb7067a495a3afc439b6234722671f229ad /exec/java-exec/src/main | |
parent | 0d6befca0bd98ad14cd2bb6700cdee5172cd8f90 (diff) |
DRILL-1227: Compatibility for non-firefox browsers.
Diffstat (limited to 'exec/java-exec/src/main')
-rw-r--r-- | exec/java-exec/src/main/resources/rest/www/graph.js | 8 |
1 files changed, 6 insertions, 2 deletions
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 76f39fad1..b65c4165f 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); |