|
From: <tob...@us...> - 2014-07-22 17:10:18
|
Revision: 8585
http://sourceforge.net/p/bigdata/code/8585
Author: tobycraig
Date: 2014-07-22 17:10:08 +0000 (Tue, 22 Jul 2014)
Log Message:
-----------
Added show datatype/language checkboxes to query results
Modified Paths:
--------------
branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/css/style.css
branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/index.html
branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/js/workbench.js
Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/css/style.css
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/css/style.css 2014-07-22 00:33:17 UTC (rev 8584)
+++ branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/css/style.css 2014-07-22 17:10:08 UTC (rev 8585)
@@ -327,6 +327,11 @@
border: 1px solid #e1e1e1;
}
+.datatype, .language {
+ font-style: italic;
+ color: grey;
+}
+
#query-history .query {
white-space: pre;
}
Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/index.html
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/index.html 2014-07-22 00:33:17 UTC (rev 8584)
+++ branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/index.html 2014-07-22 17:10:08 UTC (rev 8585)
@@ -130,6 +130,10 @@
Page <input type="text" id="current-page"> of <span id="result-pages"></span>
<button id="next-page">▶</button>
</div>
+ <div id="query-datatypes">
+ <input type="checkbox" id="show-datatypes"> <label for="show-datatypes">Show datatypes</label>
+ <input type="checkbox" id="show-languages"> <label for="show-languages">Show languages</label>
+ </div>
</div>
<div id="query-explanation" class="box">
Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/js/workbench.js
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/js/workbench.js 2014-07-22 00:33:17 UTC (rev 8584)
+++ branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/js/workbench.js 2014-07-22 17:10:08 UTC (rev 8585)
@@ -1084,7 +1084,27 @@
}
}
+function showDatatypes() {
+ if(this.checked) {
+ $('#query-response td[data-datatype]').each(function(i, el) {
+ $(this).html($(this).html() + ' <span class="datatype">' + $(this).data('datatype').split('#')[1] + '</span>');
+ });
+ } else {
+ $('#query-response table .datatype').remove();
+ }
+}
+function showLanguages() {
+ if(this.checked) {
+ $('#query-response td[data-lang]').each(function(i, el) {
+ $(this).html($(this).html() + ' <span class="language">' + $(this).data('lang') + '</span>');
+ });
+ } else {
+ $('#query-response table .language').remove();
+ }
+}
+
+
/* Query result pagination */
function setNumberOfPages() {
@@ -1670,6 +1690,8 @@
$('#previous-page').click(function() { showPage(CURRENT_PAGE - 1); });
$('#next-page').click(function() { showPage(CURRENT_PAGE + 1); });
$('#current-page').keyup(handlePageSelector);
+ $('#show-datatypes').click(showDatatypes);
+ $('#show-languages').click(showLanguages);
$('#explore-form').submit(exploreSubmit);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|