Added javascript to give a #URL when clicking on tabs (good for backup in browser, and bookmarks)
svn: r19717
This commit is contained in:
@ -5,13 +5,32 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
|
var selectedTab = 0;
|
||||||
$('#tabs').tabs();
|
$('#tabs li a').each(function(index) {
|
||||||
$('#general-tabs').tabs();
|
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
||||||
|
selectedTab = index;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#tabs').tabs({
|
||||||
|
'select': function(event, ui){
|
||||||
|
document.location.hash = "tab-" + 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>
|
||||||
|
|
||||||
|
|
||||||
<div class="content" id="IndividualDetail">
|
<div class="content" id="IndividualDetail">
|
||||||
|
|
||||||
{% include "detail_breadcrumb.html" %}
|
{% include "detail_breadcrumb.html" %}
|
||||||
|
@ -5,8 +5,18 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
|
var selectedTab = 0;
|
||||||
$('#tabs').tabs();
|
$('#tabs li a').each(function(index) {
|
||||||
|
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
||||||
|
selectedTab = index;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#tabs').tabs({
|
||||||
|
'select': function(event, ui){
|
||||||
|
document.location.hash = "tab-" + ui.panel.id;
|
||||||
|
},
|
||||||
|
'selected' : selectedTab
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -5,8 +5,18 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
|
var selectedTab = 0;
|
||||||
$('#tabs').tabs();
|
$('#tabs li a').each(function(index) {
|
||||||
|
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
||||||
|
selectedTab = index;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#tabs').tabs({
|
||||||
|
'select': function(event, ui){
|
||||||
|
document.location.hash = "tab-" + ui.panel.id;
|
||||||
|
},
|
||||||
|
'selected' : selectedTab
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -5,8 +5,18 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
|
var selectedTab = 0;
|
||||||
$('#tabs').tabs();
|
$('#tabs li a').each(function(index) {
|
||||||
|
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
||||||
|
selectedTab = index;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#tabs').tabs({
|
||||||
|
'select': function(event, ui){
|
||||||
|
document.location.hash = "tab-" + ui.panel.id;
|
||||||
|
},
|
||||||
|
'selected' : selectedTab
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -5,8 +5,18 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
|
var selectedTab = 0;
|
||||||
$('#tabs').tabs();
|
$('#tabs li a').each(function(index) {
|
||||||
|
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
||||||
|
selectedTab = index;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#tabs').tabs({
|
||||||
|
'select': function(event, ui){
|
||||||
|
document.location.hash = "tab-" + ui.panel.id;
|
||||||
|
},
|
||||||
|
'selected' : selectedTab
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -5,7 +5,18 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
$('#tabs').tabs();
|
var selectedTab = 0;
|
||||||
|
$('#tabs li a').each(function(index) {
|
||||||
|
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
||||||
|
selectedTab = index;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#tabs').tabs({
|
||||||
|
'select': function(event, ui){
|
||||||
|
document.location.hash = "tab-" + ui.panel.id;
|
||||||
|
},
|
||||||
|
'selected' : selectedTab
|
||||||
|
});
|
||||||
$('.wysiwyg').htmlarea({
|
$('.wysiwyg').htmlarea({
|
||||||
toolbar: [
|
toolbar: [
|
||||||
"bold", "italic", "underline",
|
"bold", "italic", "underline",
|
||||||
|
@ -5,8 +5,18 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
|
var selectedTab = 0;
|
||||||
$('#tabs').tabs();
|
$('#tabs li a').each(function(index) {
|
||||||
|
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
||||||
|
selectedTab = index;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#tabs').tabs({
|
||||||
|
'select': function(event, ui){
|
||||||
|
document.location.hash = "tab-" + ui.panel.id;
|
||||||
|
},
|
||||||
|
'selected' : selectedTab
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -5,8 +5,18 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
|
var selectedTab = 0;
|
||||||
$('#tabs').tabs();
|
$('#tabs li a').each(function(index) {
|
||||||
|
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
||||||
|
selectedTab = index;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#tabs').tabs({
|
||||||
|
'select': function(event, ui){
|
||||||
|
document.location.hash = "tab-" + ui.panel.id;
|
||||||
|
},
|
||||||
|
'selected' : selectedTab
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -5,8 +5,18 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
|
var selectedTab = 0;
|
||||||
$('#tabs').tabs();
|
$('#tabs li a').each(function(index) {
|
||||||
|
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
||||||
|
selectedTab = index;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#tabs').tabs({
|
||||||
|
'select': function(event, ui){
|
||||||
|
document.location.hash = "tab-" + ui.panel.id;
|
||||||
|
},
|
||||||
|
'selected' : selectedTab
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -5,12 +5,21 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
|
var selectedTab = 0;
|
||||||
$('#tabs').tabs();
|
$('#tabs li a').each(function(index) {
|
||||||
|
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
||||||
|
selectedTab = index;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#tabs').tabs({
|
||||||
|
'select': function(event, ui){
|
||||||
|
document.location.hash = "tab-" + ui.panel.id;
|
||||||
|
},
|
||||||
|
'selected' : selectedTab
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<div class="content" id="IndividualDetail">
|
<div class="content" id="IndividualDetail">
|
||||||
|
|
||||||
{% include "detail_breadcrumb.html" %}
|
{% include "detail_breadcrumb.html" %}
|
||||||
|
@ -5,8 +5,18 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
|
var selectedTab = 0;
|
||||||
$('#tabs').tabs();
|
$('#tabs li a').each(function(index) {
|
||||||
|
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
||||||
|
selectedTab = index;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#tabs').tabs({
|
||||||
|
'select': function(event, ui){
|
||||||
|
document.location.hash = "tab-" + ui.panel.id;
|
||||||
|
},
|
||||||
|
'selected' : selectedTab
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -5,8 +5,18 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function(){
|
$(function(){
|
||||||
|
var selectedTab = 0;
|
||||||
$('#tabs').tabs();
|
$('#tabs li a').each(function(index) {
|
||||||
|
if ($(this).attr('href').replace("#", "#tab-") == document.location.hash) {
|
||||||
|
selectedTab = index;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#tabs').tabs({
|
||||||
|
'select': function(event, ui){
|
||||||
|
document.location.hash = "tab-" + ui.panel.id;
|
||||||
|
},
|
||||||
|
'selected' : selectedTab
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user