|
From: <tob...@us...> - 2014-05-23 16:08:43
|
Revision: 8417
http://sourceforge.net/p/bigdata/code/8417
Author: tobycraig
Date: 2014-05-23 16:08:41 +0000 (Fri, 23 May 2014)
Log Message:
-----------
Only add <> to URIs in explore form if they're not namespaced
Modified Paths:
--------------
branches/NEW_WORKBENCH_1_3_2_BRANCH/bigdata-war/src/html/js/workbench.js
Modified: branches/NEW_WORKBENCH_1_3_2_BRANCH/bigdata-war/src/html/js/workbench.js
===================================================================
--- branches/NEW_WORKBENCH_1_3_2_BRANCH/bigdata-war/src/html/js/workbench.js 2014-05-23 16:04:05 UTC (rev 8416)
+++ branches/NEW_WORKBENCH_1_3_2_BRANCH/bigdata-war/src/html/js/workbench.js 2014-05-23 16:08:41 UTC (rev 8417)
@@ -934,14 +934,14 @@
e.preventDefault();
var uri = $(this).find('input[type="text"]').val().trim();
if(uri) {
- // add < > if they're not present
- if(uri[0] != '<') {
+ // add < > if they're not present and this is not a namespaced URI
+ if(uri[0] != '<' && uri.match(/^\w+:\//)) {
uri = '<' + uri;
+ if(uri.slice(-1) != '>') {
+ uri += '>';
+ }
+ $(this).find('input[type="text"]').val(uri);
}
- if(uri.slice(-1) != '>') {
- uri += '>';
- }
- $(this).find('input[type="text"]').val(uri);
loadURI(uri);
// if this is a SID, make the components clickable
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|