diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2014-12-02 15:37:58 +0300 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2014-12-02 15:37:58 +0300 |
commit | d03c3adff44ab11818023d3f6ba1419b8fcd11b6 (patch) | |
tree | eb0f530f9b5d962c8fa8cfba7902f7208bed184f /js/rte.js | |
parent | 410d1c32df612e2ebd35bb3c604d2ee54a29c59c (diff) |
More instances of .live() and .die() replaced with .on() and .off()
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/rte.js')
-rw-r--r-- | js/rte.js | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -786,7 +786,7 @@ $(function () { } var dialog = new RTE.object(type); dialog.editorDialog($(this).hasClass('add_anchor'), $(this)); - }); // end $.live() + }); // end $(document).on() /** * Attach Ajax event handlers for the Execute routine functionality @@ -795,7 +795,7 @@ $(function () { event.preventDefault(); var dialog = new RTE.object('routine'); dialog.executeDialog($(this)); - }); // end $.live() + }); // end $(document).on() /** * Attach Ajax event handlers for Export of Routines, Triggers and Events @@ -804,7 +804,7 @@ $(function () { event.preventDefault(); var dialog = new RTE.object(); dialog.exportDialog($(this)); - }); // end $.live() + }); // end $(document).on() /** * Attach Ajax event handlers for Drop functionality @@ -814,7 +814,7 @@ $(function () { event.preventDefault(); var dialog = new RTE.object(); dialog.dropDialog($(this)); - }); // end $.live() + }); // end $(document).on() /** * Attach Ajax event handlers for the "Change event/routine type" @@ -826,7 +826,7 @@ $(function () { .closest('table') .find('tr.recurring_event_row, tr.onetime_event_row, tr.routine_return_row, td.routine_direction_cell') .toggle(); - }); // end $.live() + }); // end $(document).on() /** * Attach Ajax event handlers for the "Change parameter type" @@ -847,7 +847,7 @@ $(function () { $row.find('select[name^=item_param_opts_text]'), $row.find('select[name^=item_param_opts_num]') ); - }); // end $.live() + }); // end $(document).on() /** * Attach Ajax event handlers for the "Change the type of return @@ -863,7 +863,7 @@ $(function () { $table.find('select[name=item_returnopts_text]'), $table.find('select[name=item_returnopts_num]') ); - }); // end $.live() + }); // end $(document).on() /** * Attach Ajax event handlers for the "Add parameter to routine" functionality @@ -900,7 +900,7 @@ $(function () { $newrow.find('select[name^=item_param_opts_text]'), $newrow.find('select[name^=item_param_opts_num]') ); - }); // end $.live() + }); // end $(document).on() /** * Attach Ajax event handlers for the @@ -940,5 +940,5 @@ $(function () { }); index++; }); - }); // end $.live() + }); // end $(document).on() }); // end of $() |