Open right tab in playground via permalink
authorVikash Agrawal <vikashagrawal1990@gmail.com>
Thu, 05 Dec 2013 00:55:03 +0530
changeset 2060 5138e22a5c74
parent 2059 65e22c436cff
child 2061 5306894a3468
Open right tab in playground via permalink
playground/index.html
playground/playground.js
--- a/playground/index.html	Wed Nov 13 09:25:53 2013 -0800
+++ b/playground/index.html	Thu Dec 05 00:55:03 2013 +0530
@@ -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	Thu Dec 05 00:55:03 2013 +0530
@@ -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