diff options
Diffstat (limited to 'resources/assets/javascripts/bootstrap')
| -rw-r--r-- | resources/assets/javascripts/bootstrap/inline-editing.js | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/resources/assets/javascripts/bootstrap/inline-editing.js b/resources/assets/javascripts/bootstrap/inline-editing.js deleted file mode 100644 index 8f96f31..0000000 --- a/resources/assets/javascripts/bootstrap/inline-editing.js +++ /dev/null @@ -1,48 +0,0 @@ -jQuery( - function () { - - jQuery(document).ready( - function() { - var elements = jQuery('[data-inline-editing]'); - for (const element of elements) { - STUDIP.InlineEditing.init(element); - } - } - ); - - jQuery(document).on( - 'dialog-update', - null, - function() { - var elements = jQuery('.ui-dialog [data-inline-editing]'); - for (const element of elements) { - STUDIP.InlineEditing.init(element); - } - } - ); - - jQuery(document).on( - 'click', - '[data-inline-editing] .edit-button', - function (event) { - STUDIP.InlineEditing.activate(event.target); - } - ); - - jQuery(document).on( - 'click', - '[data-inline-editing] .save-button', - function (event) { - STUDIP.InlineEditing.save(event.target); - } - ); - - jQuery(document).on( - 'click', - '[data-inline-editing] .abort-button', - function (event) { - STUDIP.InlineEditing.abort(event.target); - } - ); - } -); |
