Sha256: 31bc99c6d8a6d17e1bda4a9edd6bd115b8c8e9a66f8c92b945807c1d7c11ddc4
Contents?: true
Size: 797 Bytes
Versions: 3
Compression:
Stored size: 797 Bytes
Contents
$(document).ready(function(){ // activate tabs $('#tabs').tabs({ beforeLoad: function (event, ui) { var keepLoading = true; // Is the <a> tag is classified with 'cache'? if (ui.tab.children("a").first().hasClass("cache")) { keepLoading = (ui.panel.html() == ""); } if(ui.panel.html() == "") { ui.panel.html('Loading...'); } return keepLoading; }, }); }); function updatePage(name) { if (name) { var idx = $("#tabs > ul > li:contains("+name+")").index(); } else { var idx = $("#tabs").tabs("option","active"); } // force a hard reload if we're already on the desired page if ($("#tabs").tabs("option","active") == idx) { location.reload(true); } else { $("#tabs").tabs('load', idx); } }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
puppetfactory-0.6.2 | public/js/scripts.js |
puppetfactory-0.6.1 | public/js/scripts.js |
puppetfactory-0.6.0 | public/js/scripts.js |