client/annot-client/app/app.js
changeset 159 f2e4641681f6
parent 110 e4f0c105090d
--- a/client/annot-client/app/app.js	Fri Apr 17 11:26:26 2015 +0200
+++ b/client/annot-client/app/app.js	Fri Apr 17 11:28:31 2015 +0200
@@ -31,7 +31,7 @@
 
             function getURLParameter(name) {
                 return decodeURI(
-                    (new RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1]
+                    (new RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[null,])[1]
                 );
             }
 
@@ -214,6 +214,7 @@
 
                     var new_annot = {
                             category: {code: code, label: label},
+                            keyword: freeLabel,
                             text: freetext,
                             color: hexc,
                             user : $scope.username