|
From: <tob...@us...> - 2014-03-13 20:28:42
|
Revision: 7960
http://sourceforge.net/p/bigdata/code/7960
Author: tobycraig
Date: 2014-03-13 20:28:36 +0000 (Thu, 13 Mar 2014)
Log Message:
-----------
#857 - Display exploration target in header box
Modified Paths:
--------------
branches/RDR/bigdata-war/src/html/js/workbench.js
Modified: branches/RDR/bigdata-war/src/html/js/workbench.js
===================================================================
--- branches/RDR/bigdata-war/src/html/js/workbench.js 2014-03-13 20:15:00 UTC (rev 7959)
+++ branches/RDR/bigdata-war/src/html/js/workbench.js 2014-03-13 20:28:36 UTC (rev 7960)
@@ -606,9 +606,8 @@
$('#query-response a').click(function(e) {
e.preventDefault();
- var uri = $(this).text();
- loadURI(uri);
- showTab('explore');
+ // var uri = $(this).text();
+ explore(this.textContent);
});
}
}
@@ -738,9 +737,18 @@
attributesContainer.append('<h2>No attributes</h2>');
}
- $('#explore-results a').click(function(e) { e.preventDefault(); loadURI(this.text); });
+ $('#explore-results a').click(function(e) {
+ e.preventDefault();
+ explore(this.text);
+ });
}
+function explore(uri) {
+ $('#explore-form input[type=text]').val(uri);
+ $('#explore-form').submit();
+ showTab('explore');
+}
+
function updateExploreError(jqXHR, textStatus, errorThrown) {
$('#explore-results').html('Error! ' + textStatus + ' ' + errorThrown);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|