--- a/src/p4l/static/p4l/js/semantictree.js Mon Sep 09 18:41:32 2013 +0200
+++ b/src/p4l/static/p4l/js/semantictree.js Mon Sep 09 18:46:02 2013 +0200
@@ -174,8 +174,7 @@
// First we update the uri/label dict
uri = selected_node.data('uri');
// We remove the <> from the uri
- uri = uri.substring(1);
- uri = uri.substring(0, uri.length - 1);
+ uri = uri.slice(1,-1);
label = selected_node.data('label');
angular.element($('#id_'+input_name)[0]).scope().updateUriLabelDict(uri, label);
// Angular does not listen to val() event so we update the model value manually: