Javascript refinements for tabs
svn: r19718
This commit is contained in:
parent
1bd9848b1a
commit
33f168ed6e
@ -5,28 +5,10 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
var selectedTab = 0;
|
|
||||||
$('#tabs li a').each(function(index) {
|
|
||||||
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
|
||||||
selectedTab = index;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$('#tabs').tabs({
|
$('#tabs').tabs({
|
||||||
'select': function(event, ui){
|
'select': function(event, ui){
|
||||||
document.location.hash = "tab-" + ui.panel.id;
|
document.location.hash = ui.panel.id;
|
||||||
},
|
}
|
||||||
'selected' : selectedTab
|
|
||||||
});
|
|
||||||
$('#general-tabs li a').each(function(index) {
|
|
||||||
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
|
||||||
selectedTab = index;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$('#general-tabs').tabs({
|
|
||||||
'select': function(event, ui){
|
|
||||||
document.location.hash = "tab-" + ui.panel.id;
|
|
||||||
},
|
|
||||||
'selected' : selectedTab
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -5,17 +5,10 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
var selectedTab = 0;
|
|
||||||
$('#tabs li a').each(function(index) {
|
|
||||||
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
|
||||||
selectedTab = index;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$('#tabs').tabs({
|
$('#tabs').tabs({
|
||||||
'select': function(event, ui){
|
'select': function(event, ui){
|
||||||
document.location.hash = "tab-" + ui.panel.id;
|
document.location.hash = ui.panel.id;
|
||||||
},
|
}
|
||||||
'selected' : selectedTab
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -5,17 +5,10 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
var selectedTab = 0;
|
|
||||||
$('#tabs li a').each(function(index) {
|
|
||||||
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
|
||||||
selectedTab = index;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$('#tabs').tabs({
|
$('#tabs').tabs({
|
||||||
'select': function(event, ui){
|
'select': function(event, ui){
|
||||||
document.location.hash = "tab-" + ui.panel.id;
|
document.location.hash = ui.panel.id;
|
||||||
},
|
}
|
||||||
'selected' : selectedTab
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -5,17 +5,10 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
var selectedTab = 0;
|
|
||||||
$('#tabs li a').each(function(index) {
|
|
||||||
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
|
||||||
selectedTab = index;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$('#tabs').tabs({
|
$('#tabs').tabs({
|
||||||
'select': function(event, ui){
|
'select': function(event, ui){
|
||||||
document.location.hash = "tab-" + ui.panel.id;
|
document.location.hash = ui.panel.id;
|
||||||
},
|
}
|
||||||
'selected' : selectedTab
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -5,17 +5,10 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
var selectedTab = 0;
|
|
||||||
$('#tabs li a').each(function(index) {
|
|
||||||
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
|
||||||
selectedTab = index;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$('#tabs').tabs({
|
$('#tabs').tabs({
|
||||||
'select': function(event, ui){
|
'select': function(event, ui){
|
||||||
document.location.hash = "tab-" + ui.panel.id;
|
document.location.hash = ui.panel.id;
|
||||||
},
|
}
|
||||||
'selected' : selectedTab
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -5,17 +5,10 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
var selectedTab = 0;
|
|
||||||
$('#tabs li a').each(function(index) {
|
|
||||||
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
|
||||||
selectedTab = index;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$('#tabs').tabs({
|
$('#tabs').tabs({
|
||||||
'select': function(event, ui){
|
'select': function(event, ui){
|
||||||
document.location.hash = "tab-" + ui.panel.id;
|
document.location.hash = ui.panel.id;
|
||||||
},
|
}
|
||||||
'selected' : selectedTab
|
|
||||||
});
|
});
|
||||||
$('.wysiwyg').htmlarea({
|
$('.wysiwyg').htmlarea({
|
||||||
toolbar: [
|
toolbar: [
|
||||||
|
@ -5,17 +5,10 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
var selectedTab = 0;
|
|
||||||
$('#tabs li a').each(function(index) {
|
|
||||||
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
|
||||||
selectedTab = index;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$('#tabs').tabs({
|
$('#tabs').tabs({
|
||||||
'select': function(event, ui){
|
'select': function(event, ui){
|
||||||
document.location.hash = "tab-" + ui.panel.id;
|
document.location.hash = ui.panel.id;
|
||||||
},
|
}
|
||||||
'selected' : selectedTab
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -5,17 +5,10 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
var selectedTab = 0;
|
|
||||||
$('#tabs li a').each(function(index) {
|
|
||||||
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
|
||||||
selectedTab = index;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$('#tabs').tabs({
|
$('#tabs').tabs({
|
||||||
'select': function(event, ui){
|
'select': function(event, ui){
|
||||||
document.location.hash = "tab-" + ui.panel.id;
|
document.location.hash = ui.panel.id;
|
||||||
},
|
}
|
||||||
'selected' : selectedTab
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -5,17 +5,10 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
var selectedTab = 0;
|
|
||||||
$('#tabs li a').each(function(index) {
|
|
||||||
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
|
||||||
selectedTab = index;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$('#tabs').tabs({
|
$('#tabs').tabs({
|
||||||
'select': function(event, ui){
|
'select': function(event, ui){
|
||||||
document.location.hash = "tab-" + ui.panel.id;
|
document.location.hash = ui.panel.id;
|
||||||
},
|
}
|
||||||
'selected' : selectedTab
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -5,17 +5,10 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
var selectedTab = 0;
|
|
||||||
$('#tabs li a').each(function(index) {
|
|
||||||
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
|
||||||
selectedTab = index;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$('#tabs').tabs({
|
$('#tabs').tabs({
|
||||||
'select': function(event, ui){
|
'select': function(event, ui){
|
||||||
document.location.hash = "tab-" + ui.panel.id;
|
document.location.hash = ui.panel.id;
|
||||||
},
|
}
|
||||||
'selected' : selectedTab
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -5,17 +5,10 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
var selectedTab = 0;
|
|
||||||
$('#tabs li a').each(function(index) {
|
|
||||||
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
|
||||||
selectedTab = index;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$('#tabs').tabs({
|
$('#tabs').tabs({
|
||||||
'select': function(event, ui){
|
'select': function(event, ui){
|
||||||
document.location.hash = "tab-" + ui.panel.id;
|
document.location.hash = ui.panel.id;
|
||||||
},
|
}
|
||||||
'selected' : selectedTab
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -5,17 +5,10 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
var selectedTab = 0;
|
|
||||||
$('#tabs li a').each(function(index) {
|
|
||||||
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
|
||||||
selectedTab = index;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$('#tabs').tabs({
|
$('#tabs').tabs({
|
||||||
'select': function(event, ui){
|
'select': function(event, ui){
|
||||||
document.location.hash = "tab-" + ui.panel.id;
|
document.location.hash = ui.panel.id;
|
||||||
},
|
}
|
||||||
'selected' : selectedTab
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user