[Lada-commits] [PATCH 2 of 5] Fixed parsing user roles in about dialog

Wald Commits scm-commit at wald.intevation.org
Fri Aug 14 09:37:48 CEST 2015


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1439463041 -7200
# Node ID 21b139cc41b27ac369adf9db8419f255205e1335
# Parent  44d7822d0d551b6298ca05510eb9101b0574515d
Fixed parsing user roles in about dialog.

diff -r 44d7822d0d55 -r 21b139cc41b2 app/view/window/About.js
--- a/app/view/window/About.js	Thu Aug 13 11:48:26 2015 +0200
+++ b/app/view/window/About.js	Thu Aug 13 12:50:41 2015 +0200
@@ -77,10 +77,10 @@
      * This function converts an Array into HTML-paragraphs
      */
     rolesToHtml: function() {
-        var roles = '';
-        var r = Lada.userroles.split(',');
+//        var roles = '';
+//        var r = Lada.userroles.split(',');
         var i;
-        for (i in r){
+        for (i in Lada.userroles){
             roles += '<br />' + r[i];
         }
         return roles;


More information about the Lada-commits mailing list