From 4152bae0c8be312970dbb66822033147018b51f7 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Wed, 16 Nov 2011 18:54:31 +0100 Subject: [PATCH] fix bug in new history module --- scm-webapp/src/main/webapp/resources/js/sonia.history.js | 2 ++ scm-webapp/src/main/webapp/resources/js/util/sonia.util.js | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/scm-webapp/src/main/webapp/resources/js/sonia.history.js b/scm-webapp/src/main/webapp/resources/js/sonia.history.js index e2dd306f1a..314409c920 100644 --- a/scm-webapp/src/main/webapp/resources/js/sonia.history.js +++ b/scm-webapp/src/main/webapp/resources/js/sonia.history.js @@ -60,6 +60,8 @@ Sonia.History = { token += '|'; } } + } else { + token = elements; } return token; }, diff --git a/scm-webapp/src/main/webapp/resources/js/util/sonia.util.js b/scm-webapp/src/main/webapp/resources/js/util/sonia.util.js index 298fda6801..cce8a1e3fc 100644 --- a/scm-webapp/src/main/webapp/resources/js/util/sonia.util.js +++ b/scm-webapp/src/main/webapp/resources/js/util/sonia.util.js @@ -113,12 +113,12 @@ Sonia.util.apply = function(obj, p){ } else { if (p){ if ( Ext.isArray(p) ){ - obj.fn.call(obj.scope, p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9]); + result = obj.fn.call(obj.scope, p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9]); } else { - obj.fn.call(obj.scope, p); + result = obj.fn.call(obj.scope, p); } } else { - obj.fn.call(obj.scope); + result = obj.fn.call(obj.scope); } } return result;