Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a2179ea1

Von Moritz Bunkus vor etwa 4 Jahren hinzugefügt

  • ID a2179ea178c2e8cdcef9fd0cab517048778383de
  • Vorgänger 78efada8
  • Nachfolger b060528d

ClientJS: Funktion zum Setzen der Cursorposition (z.B. in textareas)

Unterschiede anzeigen:

js/client_js.js
113 113

  
114 114
      // ## jQuery UI dialog plugin ##
115 115

  
116
      // Opening and closing and closing a popup
116
      // Opening and closing a popup
117 117
      else if (action[0] == 'dialog:open')          kivi.popup_dialog(action[1]);
118 118
      else if (action[0] == 'dialog:close')         $(action[1]).dialog('close');
119 119

  
......
159 159
      else if (action[0] == 'run')                  kivi.run(action[1], action.slice(2, action.length));
160 160
      else if (action[0] == 'run_once_for')         kivi.run_once_for(action[1], action[2], action[3]);
161 161
      else if (action[0] == 'scroll_into_view')     $(action[1])[0].scrollIntoView();
162
      else if (action[0] == 'set_cursor_position')  kivi.set_cursor_position(action[1], action[2]);
162 163

  
163 164
      else                                          console.log('Unknown action: ' + action[0]);
164 165

  

Auch abrufbar als: Unified diff