Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(function() {
- $(".feed-tabs ul").tabs("div.feeds > div", {
- effect: 'fade',
- onBeforeClick: function(event, i) {
- // get the pane to be opened
- var pane = this.getPanes().eq(i);
- // only load once. remove the if ( ... ){ } clause if you want the page to be loaded every time
- if (pane.is(":empty")) {
- // load it with a page specified in the tab's href attribute
- pane.load(this.getTabs().eq(i).attr("href"));
- }
- }
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement