diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-31 09:26:43 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-31 09:26:43 +0200 |
commit | 0f8aca9d87db9022fe942a3d3fbb11433e152676 (patch) | |
tree | 5b36724719611ebb87b3d9290a51475f32b48e64 /core/src/jquery | |
parent | fc31cb8bf2d6cf7ee7af46af38e1b06002f7fb26 (diff) | |
download | nextcloud-server-0f8aca9d87db9022fe942a3d3fbb11433e152676.tar.gz nextcloud-server-0f8aca9d87db9022fe942a3d3fbb11433e152676.zip |
Bump compiled files
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/src/jquery')
-rw-r--r-- | core/src/jquery/avatar.js | 4 | ||||
-rw-r--r-- | core/src/jquery/contactsmenu.js | 6 | ||||
-rw-r--r-- | core/src/jquery/ocdialog.js | 24 | ||||
-rw-r--r-- | core/src/jquery/octemplate.js | 4 | ||||
-rw-r--r-- | core/src/jquery/showpassword.js | 2 |
5 files changed, 20 insertions, 20 deletions
diff --git a/core/src/jquery/avatar.js b/core/src/jquery/avatar.js index 24cef392d34..8c17e65e98c 100644 --- a/core/src/jquery/avatar.js +++ b/core/src/jquery/avatar.js @@ -110,7 +110,7 @@ $.fn.avatar = function(user, size, ie8fix, hidedefault, callback, displayname) { url = OC.generateUrl( '/avatar/{user}/{size}?v={version}', { - user: user, + user, size: Math.ceil(size * window.devicePixelRatio), version: oc_userconfig.avatar.version, }) @@ -118,7 +118,7 @@ $.fn.avatar = function(user, size, ie8fix, hidedefault, callback, displayname) { url = OC.generateUrl( '/avatar/{user}/{size}', { - user: user, + user, size: Math.ceil(size * window.devicePixelRatio), }) } diff --git a/core/src/jquery/contactsmenu.js b/core/src/jquery/contactsmenu.js index ee708dcf982..50d256ff3f8 100644 --- a/core/src/jquery/contactsmenu.js +++ b/core/src/jquery/contactsmenu.js @@ -65,8 +65,8 @@ $.fn.contactsMenu = function(shareWith, shareType, appendTo) { $.ajax(OC.generateUrl('/contactsmenu/findOne'), { method: 'POST', data: { - shareType: shareType, - shareWith: shareWith, + shareType, + shareWith, }, }).then(function(data) { $list.find('ul').find('li').addClass('hidden') @@ -98,7 +98,7 @@ $.fn.contactsMenu = function(shareWith, shareType, appendTo) { const template = entryTemplate $list.find('ul').append(template({ hyperlink: '#', - title: title, + title, })) }) }) diff --git a/core/src/jquery/ocdialog.js b/core/src/jquery/ocdialog.js index 0fcc33c90a0..7e570d77f52 100644 --- a/core/src/jquery/ocdialog.js +++ b/core/src/jquery/ocdialog.js @@ -30,7 +30,7 @@ $.widget('oc.ocdialog', { closeCallback: null, modal: false, }, - _create: function() { + _create() { const self = this this.originalCss = { @@ -107,11 +107,11 @@ $.widget('oc.ocdialog', { this._setOptions(this.options) this._createOverlay() }, - _init: function() { + _init() { this.$dialog.focus() this._trigger('open') }, - _setOption: function(key, value) { + _setOption(key, value) { const self = this switch (key) { case 'title': @@ -190,11 +190,11 @@ $.widget('oc.ocdialog', { // this._super(key, value); $.Widget.prototype._setOption.apply(this, arguments) }, - _setOptions: function(options) { + _setOptions(options) { // this._super(options); $.Widget.prototype._setOptions.apply(this, arguments) }, - _setSizes: function() { + _setSizes() { let lessHeight = 0 if (this.$title) { lessHeight += this.$title.outerHeight(true) @@ -206,7 +206,7 @@ $.widget('oc.ocdialog', { 'height': 'calc(100% - ' + lessHeight + 'px)', }) }, - _createOverlay: function() { + _createOverlay() { if (!this.options.modal) { return } @@ -228,7 +228,7 @@ $.widget('oc.ocdialog', { } }) }, - _destroyOverlay: function() { + _destroyOverlay() { if (!this.options.modal) { return } @@ -239,16 +239,16 @@ $.widget('oc.ocdialog', { this.overlay = null } }, - widget: function() { + widget() { return this.$dialog }, - setEnterCallback: function(callback) { + setEnterCallback(callback) { this.enterCallback = callback }, - unsetEnterCallback: function() { + unsetEnterCallback() { this.enterCallback = null }, - close: function() { + close() { this._destroyOverlay() const self = this // Ugly hack to catch remaining keyup events. @@ -259,7 +259,7 @@ $.widget('oc.ocdialog', { self.$dialog.remove() this.destroy() }, - destroy: function() { + destroy() { if (this.$title) { this.$title.remove() } diff --git a/core/src/jquery/octemplate.js b/core/src/jquery/octemplate.js index 27b2dff970b..f89e13b000f 100644 --- a/core/src/jquery/octemplate.js +++ b/core/src/jquery/octemplate.js @@ -56,7 +56,7 @@ import escapeHTML from 'escape-html' * Inspired by micro templating done by e.g. underscore.js */ const Template = { - init: function(vars, options, elem) { + init(vars, options, elem) { // Mix in the passed in options with the default options this.vars = vars this.options = $.extend({}, this.options, options) @@ -77,7 +77,7 @@ const Template = { return $(_html) }, // From stackoverflow.com/questions/1408289/best-way-to-do-variable-interpolation-in-javascript - _build: function(o) { + _build(o) { const data = this.elem.attr('type') === 'text/template' ? this.elem.html() : this.elem.get(0).outerHTML try { return data.replace(/{([^{}]*)}/g, diff --git a/core/src/jquery/showpassword.js b/core/src/jquery/showpassword.js index 393ecac08b5..553f6e15df1 100644 --- a/core/src/jquery/showpassword.js +++ b/core/src/jquery/showpassword.js @@ -36,7 +36,7 @@ import $ from 'jquery' * @licens MIT License - http://www.opensource.org/licenses/mit-license.php */ $.fn.extend({ - showPassword: function(c) { + showPassword(c) { // Setup callback object const callback = { 'fn': null, 'args': {} } |