small clean
authorcavaliet
Mon, 09 Sep 2013 18:46:02 +0200
changeset 58 32591d23cb4b
parent 57 3a8a55131180
child 59 a0ef3043b1d2
small clean
src/p4l/static/p4l/js/semantictree.js
--- 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: