From: <tob...@us...> - 2014-07-22 18:16:26
|
Revision: 8586 http://sourceforge.net/p/bigdata/code/8586 Author: tobycraig Date: 2014-07-22 18:16:22 +0000 (Tue, 22 Jul 2014) Log Message: ----------- Adjusted datatype and language rendering 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/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 17:10:08 UTC (rev 8585) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/css/style.css 2014-07-22 18:16:22 UTC (rev 8586) @@ -327,11 +327,6 @@ 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/js/workbench.js =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/js/workbench.js 2014-07-22 17:10:08 UTC (rev 8585) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-war/src/html/js/workbench.js 2014-07-22 18:16:22 UTC (rev 8586) @@ -1087,20 +1087,26 @@ 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>'); + $(this).html('"' + $(this).html() + '"<span class="datatype">^^' + abbreviate($(this).data('datatype')) + '</span>'); }); } else { - $('#query-response table .datatype').remove(); + $('#query-response table td[data-datatype]').each(function(i, el) { + $(this).find('.datatype').remove(); + $(this).html($(this).html().slice(1, -1)); + }); } } 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>'); + $(this).html('"' + $(this).html() + '"<span class="language">@' + $(this).data('lang') + '</span>'); }); } else { - $('#query-response table .language').remove(); + $('#query-response table td[data-lang]').each(function(i, el) { + $(this).find('.language').remove(); + $(this).html($(this).html().slice(1, -1)); + }); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |