Revision fd76a30f ui/templates/home.html
b/ui/templates/home.html | ||
---|---|---|
43 | 43 |
<script> |
44 | 44 |
$(function() { |
45 | 45 |
$('ul.css-tabs li').hover(function(){ |
46 |
$(this).find('a:not(.current)').animate({top:'-3px'},{queue:false,duration:150});
|
|
46 |
$(this).find('a:not(.current)').animate({top:'0px'},{queue:false,duration:150});
|
|
47 | 47 |
}, function(){ |
48 |
$(this).find('a:not(.current)').animate({top:'0px'},{queue:false,duration:150});
|
|
48 |
$('ul.css-tabs li a:not(.current)').animate({top:'7px'},{queue:false,duration:150});
|
|
49 | 49 |
}); |
50 | 50 |
}); |
51 | 51 |
$(function() { |
52 | 52 |
$("ul.css-tabs").tabs("div.css-panes div.pane", { |
53 | 53 |
onBeforeClick: function(event, i) { |
54 |
$('ul.css-tabs li a').animate({top:'7px'},{queue:false,duration:150}); |
|
54 | 55 |
// get the pane to be opened |
55 | 56 |
var pane = this.getPanes().eq(i); |
56 | 57 |
pane.text(''); |
57 | 58 |
// load it with a page specified in the tab's href attribute |
58 | 59 |
pane.load(this.getTabs().eq(i).attr("href")); |
60 |
|
|
59 | 61 |
} |
60 | 62 |
}); |
61 | 63 |
}); |
Also available in: Unified diff