Revision 2738c03e
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/ClientJS.pm | ||
---|---|---|
95 | 95 |
'jstree:select_node' => 2, # $.jstree._reference($(<TARGET>)).<FUNCTION>(<ARGS>, true) |
96 | 96 |
'jstree:deselect_node' => 2, |
97 | 97 |
'jstree:deselect_all' => 1, |
98 |
|
|
99 |
# ## other stuff ## |
|
100 |
redirect_to => 1, # window.location.href = <TARGET> |
|
98 | 101 |
); |
99 | 102 |
|
100 | 103 |
sub AUTOLOAD { |
... | ... | |
401 | 404 |
The messages of multiple calls of C<error> on the same C<$self> will |
402 | 405 |
be merged. |
403 | 406 |
|
407 |
=item C<redirect_to $url> |
|
408 |
|
|
409 |
Redirects the browser window to the new URL by setting the JavaScript |
|
410 |
property C<window.location.href>. Note that |
|
411 |
L<SL::Controller::Base/redirect_to> is AJAX aware and uses this |
|
412 |
function if the current request is an AJAX request as determined by |
|
413 |
L<SL::Request/is_ajax>. |
|
414 |
|
|
404 | 415 |
=back |
405 | 416 |
|
406 | 417 |
=head2 JQUERY FUNCTIONS |
Auch abrufbar als: Unified diff
ClientJS: Unterstützung für Browser-Redirects ("$js->redirect_to")