Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5551a36b

Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt

  • ID 5551a36b8f059aa03a371fb5a851c116d305fccb
  • Vorgänger f50ddd66
  • Nachfolger 341fbe8b

ClientJS: jQuery-Funktionen addClass, removeClass, toggleClass; Utility-Funktion "action_if"; Doku

Unterschiede anzeigen:

js/client_js.js
71 71
      else if (action[0] == 'removeProp')           $(action[1]).removeProp(action[2]);
72 72
      else if (action[0] == 'val')                  $(action[1]).val(action[2]);
73 73

  
74
      // Class attribute
75
      else if (action[0] == 'addClass')             $(action[1]).addClass(action[2]);
76
      else if (action[0] == 'removeClass')          $(action[1]).removeClass(action[2]);
77
      else if (action[0] == 'toggleClass')          $(action[1]).toggleClass(action[2]);
78

  
74 79
      // Data storage
75 80
      else if (action[0] == 'data')                 $(action[1]).data(action[2], action[3]);
76 81
      else if (action[0] == 'removeData')           $(action[1]).removeData(action[2]);

Auch abrufbar als: Unified diff