jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject svn commit: r1600585 - /jena/Experimental/jena-fuseki2/src/main/webapp/js/app/views/dataset-selector.js
Date Thu, 05 Jun 2014 10:35:26 GMT
Author: ijd
Date: Thu Jun  5 10:35:25 2014
New Revision: 1600585

URL: http://svn.apache.org/r1600585
Log:
Unhide dataset-specific elements once the DS is known

Modified:
    jena/Experimental/jena-fuseki2/src/main/webapp/js/app/views/dataset-selector.js

Modified: jena/Experimental/jena-fuseki2/src/main/webapp/js/app/views/dataset-selector.js
URL: http://svn.apache.org/viewvc/jena/Experimental/jena-fuseki2/src/main/webapp/js/app/views/dataset-selector.js?rev=1600585&r1=1600584&r2=1600585&view=diff
==============================================================================
--- jena/Experimental/jena-fuseki2/src/main/webapp/js/app/views/dataset-selector.js (original)
+++ jena/Experimental/jena-fuseki2/src/main/webapp/js/app/views/dataset-selector.js Thu Jun
 5 10:35:25 2014
@@ -35,7 +35,12 @@ define(
       },
 
       onRender: function() {
-        $('.selectpicker').selectpicker('refresh');
+        var selector = $('.selectpicker');
+        selector.selectpicker('refresh');
+
+        if (selector.val()) {
+          this.unHideDatasetElements();
+        }
       },
 
       onChangeDataset: function( e ) {
@@ -44,6 +49,11 @@ define(
         fui.vent.trigger( "dataset.changed", newDatasetName );
       },
 
+      unHideDatasetElements: function() {
+        $(".no-dataset").addClass( "hidden" );
+        $(".with-dataset").removeClass( "hidden" );
+      }
+
 
     });
 



Mime
View raw message