Merge pull request #309 from ivikash/open_tab_in_playground
authorDavid I. Lehn <dil@lehn.org>
Wed, 04 Dec 2013 11:44:29 -0800
changeset 2061 5306894a3468
parent 2059 65e22c436cff (current diff)
parent 2060 5138e22a5c74 (diff)
child 2062 49bb2444fadd
Merge pull request #309 from ivikash/open_tab_in_playground

Open right tab in playground via permalink
--- a/playground/index.html	Wed Nov 13 09:25:53 2013 -0800
+++ b/playground/index.html	Wed Dec 04 11:44:29 2013 -0800
@@ -141,8 +141,8 @@
           </div>
         </div>
       </div>
-      <p id="permalink"></p>
-      <p id="markup-errors" class="text-error"></p>
+      <div id="permalink"></div>
+      <div id="markup-errors" class="text-error"></div>
       <div id="param-errors" class="text-error"></div>
       <div id="using-context-map" class="hide alert alert-note">
         <p>NOTE: Schema.org's remote context was detected in your input but, unfortunately,
--- a/playground/playground.js	Wed Nov 13 09:25:53 2013 -0800
+++ b/playground/playground.js	Wed Dec 04 11:44:29 2013 -0800
@@ -132,8 +132,7 @@
 
     var startTab = getParameterByName('startTab');
     if(startTab) {
-      // strip 'tab-' to get the tab's panel's ID
-      $('#tabs').tabs('select', '#' + startTab.substr(4));
+       $('#' + startTab).trigger('click')
     }
 
     // wait for ajax if needed