Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2017-05-02 22:44:44 +0300
committerGitHub <noreply@github.com>2017-05-02 22:44:44 +0300
commit6d9cb62f79a634aaf68daa8abb786bf7f92a0c0a (patch)
treeb0de81e6515f5149bae74f616a57f8b50cca342d /core
parent121cb4bcfcc696006036f93bdc1b946d8e4e3e95 (diff)
parent80a5e0a735c76a031dda0dade59c2076154b5267 (diff)
Merge pull request #4611 from nextcloud/js-use-dot-notation
Use dot notation for array access - JSLint recommendation
Diffstat (limited to 'core')
-rw-r--r--core/js/files/client.js2
-rw-r--r--core/js/files/iedavclient.js2
-rw-r--r--core/js/js.js4
-rw-r--r--core/js/lostpassword.js4
-rw-r--r--core/js/public/appconfig.js4
-rw-r--r--core/js/share.js2
6 files changed, 9 insertions, 9 deletions
diff --git a/core/js/files/client.js b/core/js/files/client.js
index e8cf5b9bdb4..da8a1205e4b 100644
--- a/core/js/files/client.js
+++ b/core/js/files/client.js
@@ -725,7 +725,7 @@
};
if (!allowOverwrite) {
- headers['Overwrite'] = 'F';
+ headers.Overwrite = 'F';
}
this._client.request(
diff --git a/core/js/files/iedavclient.js b/core/js/files/iedavclient.js
index a0185fb3bec..4e2c17abc55 100644
--- a/core/js/files/iedavclient.js
+++ b/core/js/files/iedavclient.js
@@ -32,7 +32,7 @@
headers = headers || {};
if (this.userName) {
- headers['Authorization'] = 'Basic ' + btoa(this.userName + ':' + this.password);
+ headers.Authorization = 'Basic ' + btoa(this.userName + ':' + this.password);
// xhr.open(method, this.resolveUrl(url), true, this.userName, this.password);
}
xhr.open(method, this.resolveUrl(url), true);
diff --git a/core/js/js.js b/core/js/js.js
index b6086846d59..0a14acd4b6c 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -2366,10 +2366,10 @@ jQuery.fn.tipsy = function(argument) {
options.trigger = argument.trigger;
}
if(argument.delayIn) {
- options.delay["show"] = argument.delayIn;
+ options.delay.show = argument.delayIn;
}
if(argument.delayOut) {
- options.delay["hide"] = argument.delayOut;
+ options.delay.hide = argument.delayOut;
}
if(argument.html) {
options.html = true;
diff --git a/core/js/lostpassword.js b/core/js/lostpassword.js
index 4690b86f995..2f96911f162 100644
--- a/core/js/lostpassword.js
+++ b/core/js/lostpassword.js
@@ -22,8 +22,8 @@ OC.Lostpassword = {
if (!$('#user').val().length){
$('#submit').trigger('click');
} else {
- if (OC.config['lost_password_link']) {
- window.location = OC.config['lost_password_link'];
+ if (OC.config.lost_password_link) {
+ window.location = OC.config.lost_password_link;
} else {
$.post(
OC.generateUrl('/lostpassword/email'),
diff --git a/core/js/public/appconfig.js b/core/js/public/appconfig.js
index bba39c8b805..7f00f03861e 100644
--- a/core/js/public/appconfig.js
+++ b/core/js/public/appconfig.js
@@ -79,7 +79,7 @@ OCP.AppConfig = {
*/
getValue: function(app, key, defaultValue, options) {
options = options || {};
- options['data'] = {
+ options.data = {
defaultValue: defaultValue
};
@@ -97,7 +97,7 @@ OCP.AppConfig = {
*/
setValue: function(app, key, value, options) {
options = options || {};
- options['data'] = {
+ options.data = {
value: value
};
diff --git a/core/js/share.js b/core/js/share.js
index 1f2126b8f51..659d719788d 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -192,7 +192,7 @@ OC.Share = _.extend(OC.Share || {}, {
}
if (shares) {
OC.Share.statuses[itemSource] = OC.Share.statuses[itemSource] || {};
- OC.Share.statuses[itemSource]['link'] = link;
+ OC.Share.statuses[itemSource].link = link;
} else {
delete OC.Share.statuses[itemSource];
}