Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 412f76c9

Von Moritz Bunkus vor etwa 7 Jahren hinzugefügt

  • ID 412f76c91f08e0f828f9f070abd883b1af7022ae
  • Vorgänger ffb2fb4c
  • Nachfolger cf7153b0

ActionBar: normale Link-Elemente nun doch als DIVs rendern & als Buttons stylen

Unterschiede anzeigen:

js/kivi.ActionBar.js
129 129
      $(e).tooltipster({ content: data.tooltip, theme: 'tooltipster-light' });
130 130
    }
131 131

  
132
    if (data.call || data.submit) {
132
    if (data.call || data.submit || data.link) {
133 133
      $(e).click(function(event) {
134 134
        var $hidden, key, func, check;
135 135
        if ($(e).hasClass(CLASSES.disabled)) {
......
160 160
          }
161 161
          $(form).submit();
162 162
        }
163
        if (data.link) {
164
          window.location.href = data.link;
165
        }
163 166
      });
164 167
    }
165 168
  };

Auch abrufbar als: Unified diff