From: <tob...@us...> - 2014-03-15 01:32:51
|
Revision: 7978 http://sourceforge.net/p/bigdata/code/7978 Author: tobycraig Date: 2014-03-15 01:32:44 +0000 (Sat, 15 Mar 2014) Log Message: ----------- #827 - Change No Results Found to No Incoming/Outgoing Links/Attributes Modified Paths: -------------- branches/RDR/bigdata-war/src/html/css/style.css branches/RDR/bigdata-war/src/html/js/workbench.js branches/RDR/bigdata-war/src/html/new.html Modified: branches/RDR/bigdata-war/src/html/css/style.css =================================================================== --- branches/RDR/bigdata-war/src/html/css/style.css 2014-03-15 01:21:15 UTC (rev 7977) +++ branches/RDR/bigdata-war/src/html/css/style.css 2014-03-15 01:32:44 UTC (rev 7978) @@ -179,7 +179,7 @@ border: none; } -#advanced-features, #query-explanation, #explore-results, #namespace-properties { +#advanced-features, #query-explanation, #namespace-properties { display: none; } Modified: branches/RDR/bigdata-war/src/html/js/workbench.js =================================================================== --- branches/RDR/bigdata-war/src/html/js/workbench.js 2014-03-15 01:21:15 UTC (rev 7977) +++ branches/RDR/bigdata-war/src/html/js/workbench.js 2014-03-15 01:32:44 UTC (rev 7978) @@ -636,13 +636,13 @@ var re = /<< <([^<>]*)> <([^<>]*)> <([^<>]*)> >>/; var match = uri.match(re); if(match) { - $('#explore-header h1').html('<< <<a href="#">' + match[1] + '</a> > <<a href="#">' + match[2] + '</a> > <<a href="#">' + match[3] + '</a> > >>'); + $('#explore-header').html('<h1><< <<a href="#">' + match[1] + '</a> > <<a href="#">' + match[2] + '</a> > <<a href="#">' + match[3] + '</a> > >></h1>'); $('#explore-header h1 a').click(function(e) { e.preventDefault(); explore(this.text); }); } else { - $('#explore-header h1').text(uri); + $('#explore-header').html('<h1>' + uri + '</h1>'); } } }); @@ -718,15 +718,7 @@ console.log('Explore results'); console.log(data); var results = data.results.bindings.length > 0; - $('#explore-results').toggle(results); - $('#explore-no-results').toggle(!results); - // see if we got any results - if(!results) { - $('#explore-no-results').html('<h1>No results found!</h1>'); - return; - } - // clear tables $('#explore-incoming, #explore-outgoing, #explore-attributes').html('<table>'); @@ -790,9 +782,8 @@ } function updateExploreError(jqXHR, textStatus, errorThrown) { - $('#explore-results').hide(); - $('#explore-no-results').show(); - $('#explore-no-results').html('Error! ' + textStatus + ' ' + errorThrown); + $('#explore-results .box').html(''); + $('#explore-header').html('Error! ' + textStatus + ' ' + errorThrown); } /* Status */ Modified: branches/RDR/bigdata-war/src/html/new.html =================================================================== --- branches/RDR/bigdata-war/src/html/new.html 2014-03-15 01:21:15 UTC (rev 7977) +++ branches/RDR/bigdata-war/src/html/new.html 2014-03-15 01:32:44 UTC (rev 7978) @@ -144,14 +144,12 @@ </div> <div id="explore-results"> - <div class="box" id="explore-header"><h1></h1></div> + <div class="box" id="explore-header"></div> <div class="box" id="explore-incoming"></div> <div class="box" id="explore-outgoing"></div> <div class="box" id="explore-attributes"></div> </div> - <div class="box" id="explore-no-results"></div> - </div> <div class="tab" id="status-tab"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |