Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d6d93439

Von Thomas Heck vor etwa 11 Jahren hinzugefügt

  • ID d6d93439fa04dfff452e621b7334fc5f9ff8be59
  • Vorgänger 3bb283ad
  • Nachfolger e69f87a9

Geöffnete Tabs in Cookies speichern + wiederaufrufen

Unterschiede anzeigen:

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