From d60601b2774e9c18ae91a9c7184f601e6fc52b7a Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Tue, 4 Dec 2012 22:00:58 +0100 Subject: [PATCH] added util method to get property value from properties array --- .../main/webapp/resources/js/util/sonia.util.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 87e4709484..1845efd1ae 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 @@ -178,4 +178,18 @@ if (!Array.prototype.filter) { return results; } +} + +Sonia.util.getProperty = function(properties, key){ + var value = null; + if ( properties != null ){ + for (var i=0; i