summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-07-20 09:39:52 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-07-21 15:02:21 +0200
commite302cadae27ed560960b2b87810023ec4827aa4d (patch)
treed16b86d5b4220db9f0e7af0bc5be07f09093d106
parentd4de77afb9bdff57985863b6adc8a37d6d198807 (diff)
downloadnextcloud-server-e302cadae27ed560960b2b87810023ec4827aa4d.tar.gz
nextcloud-server-e302cadae27ed560960b2b87810023ec4827aa4d.zip
Don't use shorthand syntax for functions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--core/js/sharedialoglinkshareview.js8
-rw-r--r--core/js/sharedialogshareelistview.js8
2 files changed, 8 insertions, 8 deletions
diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js
index d1d321f9860..19ce4d65c5c 100644
--- a/core/js/sharedialoglinkshareview.js
+++ b/core/js/sharedialoglinkshareview.js
@@ -364,7 +364,7 @@
});
},
- showNoteForm(event) {
+ showNoteForm: function(event) {
event.preventDefault();
event.stopPropagation();
var self = this;
@@ -379,7 +379,7 @@
$form.find('textarea').focus();
},
- deleteNote(event) {
+ deleteNote: function(event) {
event.preventDefault();
event.stopPropagation();
var self = this;
@@ -398,7 +398,7 @@
self.sendNote('', shareId, $menu);
},
- updateNote(event) {
+ updateNote: function(event) {
event.preventDefault();
event.stopPropagation();
var self = this;
@@ -416,7 +416,7 @@
self.sendNote(message, shareId, $menu);
},
- sendNote(note, shareId, $menu) {
+ sendNote: function(note, shareId, $menu) {
var $form = $menu.next('li.share-note-form');
var $submit = $form.find('input.share-note-submit');
var $error = $form.find('input.share-note-error');
diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js
index 823c49e7e65..574d47b4aac 100644
--- a/core/js/sharedialogshareelistview.js
+++ b/core/js/sharedialogshareelistview.js
@@ -499,7 +499,7 @@
return this._popoverMenuTemplate(data);
},
- showNoteForm(event) {
+ showNoteForm: function(event) {
event.preventDefault();
event.stopPropagation();
var $element = $(event.target);
@@ -512,7 +512,7 @@
$form.find('textarea').focus();
},
- deleteNote(event) {
+ deleteNote: function(event) {
event.preventDefault();
event.stopPropagation();
var self = this;
@@ -531,7 +531,7 @@
self.sendNote('', shareId, $menu);
},
- updateNote(event) {
+ updateNote: function(event) {
event.preventDefault();
event.stopPropagation();
var self = this;
@@ -550,7 +550,7 @@
},
- sendNote(note, shareId, $menu) {
+ sendNote: function(note, shareId, $menu) {
var $form = $menu.next('li.share-note-form');
var $submit = $form.find('input.share-note-submit');
var $error = $form.find('input.share-note-error');