Revision 69e7991b
Von Thomas Heck vor mehr als 11 Jahren hinzugefügt
js/common.js | ||
---|---|---|
187 | 187 |
|
188 | 188 |
$(document).ready(function () { |
189 | 189 |
// initialize all jQuery UI tab elements: |
190 |
$(".tabwidget").each(function(idx, element) { $(element).tabs(); }); |
|
190 |
$(".tabwidget").each(function(idx, element) { |
|
191 |
element = $(element); |
|
192 |
var cookieName = 'jquery_ui_tab_'+ element.attr('id'); |
|
193 |
element.tabs({ |
|
194 |
active: $.cookie(cookieName), |
|
195 |
activate: function(event, ui) { |
|
196 |
var i = ui.newTab.parent().children().index(ui.newTab); |
|
197 |
$.cookie(cookieName, i); |
|
198 |
}, |
|
199 |
}); |
|
200 |
}); |
|
191 | 201 |
|
192 | 202 |
$('input').focus(function(){ |
193 | 203 |
if (focussable(this)) window.focused_element = this; |
templates/webpages/customer_vendor/form.html | ||
---|---|---|
13 | 13 |
|
14 | 14 |
[%- INCLUDE 'common/flash.html' %] |
15 | 15 |
|
16 |
<div class="tabwidget"> |
|
16 |
<div class="tabwidget" id="customer_vendor_tabs">
|
|
17 | 17 |
<ul> |
18 | 18 |
<li><a href="#billing">[% 'Billing Address' | $T8 %]</a></li> |
19 | 19 |
<li><a href="#shipto">[% 'Shipping Address' | $T8 %]</a></li> |
Auch abrufbar als: Unified diff
Geöffnete Tabs in Cookies speichern + wiederaufrufen