Really open the tab specified in the URL
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Mon, 03 Mar 2014 11:29:07 +0100
changeset 2128 1110d7143812
parent 2127 9cc223f3d3d8
child 2129 fcf12824afc5
Really open the tab specified in the URL

This reverts #331 (commit c13206aeed007f0768e1e2e21c749e2ee3f446f2), reversing
changes made to c07a61f55521f6272edb5834de2949ec858e7d90.

Fixes #330.
playground/playground.js
--- a/playground/playground.js	Mon Mar 03 11:16:23 2014 +0100
+++ b/playground/playground.js	Mon Mar 03 11:29:07 2014 +0100
@@ -143,7 +143,7 @@
 
     var startTab = getParameterByName('startTab');
     if(startTab) {
-      $('#' + startTab.slice(0, -1)).tab('show');
+       $('#' + startTab).tab('show');
     }
 
     // wait for ajax if needed
@@ -314,7 +314,7 @@
       $('#markup-div').removeClass('span6').addClass('span12');
       $('#param-type').html('');
     }
-    
+
     $.each(playground.editors, function(id, editor){ editor.refresh(); });
 
     // perform processing on the data provided in the input boxes
@@ -333,7 +333,7 @@
 
     // set base IRI
     var options = {base: (document.baseURI || document.URL)};
-    
+
     var promise;
     if(playground.activeTab === 'tab-compacted') {
       promise = processor.compact(input, param, options);
@@ -358,7 +358,7 @@
     else {
       promise = Promise.reject(new Error('Invalid tab selection.'));
     }
-    
+
     return promise.then(function(result) {
       var outputTab = playground.activeTab.substr('tab-'.length);
       if(['compacted', 'expanded', 'flattened', 'framed']