Add missing semicolons
This fixes some recommendations from LGTM: Avoid automated semicolon insertion (90% of all statements in the enclosing function have an explicit semicolon). Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
a1ea504edf
commit
2ad38200fb
5 changed files with 8 additions and 8 deletions
|
@ -102,7 +102,7 @@
|
||||||
this.$el.insertAfter($('#app-content'));
|
this.$el.insertAfter($('#app-content'));
|
||||||
} else {
|
} else {
|
||||||
if ($appSidebar[0] !== this.el) {
|
if ($appSidebar[0] !== this.el) {
|
||||||
$appSidebar.replaceWith(this.$el)
|
$appSidebar.replaceWith(this.$el);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -310,10 +310,10 @@
|
||||||
breadcrumbOptions.onDrop = _.bind(this._onDropOnBreadCrumb, this);
|
breadcrumbOptions.onDrop = _.bind(this._onDropOnBreadCrumb, this);
|
||||||
breadcrumbOptions.onOver = function() {
|
breadcrumbOptions.onOver = function() {
|
||||||
self.$el.find('td.filename.ui-droppable').droppable('disable');
|
self.$el.find('td.filename.ui-droppable').droppable('disable');
|
||||||
}
|
};
|
||||||
breadcrumbOptions.onOut = function() {
|
breadcrumbOptions.onOut = function() {
|
||||||
self.$el.find('td.filename.ui-droppable').droppable('enable');
|
self.$el.find('td.filename.ui-droppable').droppable('enable');
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
this.breadcrumb = new OCA.Files.BreadCrumb(breadcrumbOptions);
|
this.breadcrumb = new OCA.Files.BreadCrumb(breadcrumbOptions);
|
||||||
|
|
||||||
|
|
|
@ -232,7 +232,7 @@
|
||||||
promises.push($.ajax(remoteShares));
|
promises.push($.ajax(remoteShares));
|
||||||
}
|
}
|
||||||
if (this._isOverview) {
|
if (this._isOverview) {
|
||||||
shares.data.shared_with_me = !shares.data.shared_with_me
|
shares.data.shared_with_me = !shares.data.shared_with_me;
|
||||||
promises.push($.ajax(shares));
|
promises.push($.ajax(shares));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -302,7 +302,7 @@ OCA = OCA || {};
|
||||||
if( !view.getFilterItem().$element.val()
|
if( !view.getFilterItem().$element.val()
|
||||||
&& view.parsedFilterMode === view.configModel.FILTER_MODE_ASSISTED
|
&& view.parsedFilterMode === view.configModel.FILTER_MODE_ASSISTED
|
||||||
) {
|
) {
|
||||||
view.configModel.requestWizard(view.getFilterItem().keyName)
|
view.configModel.requestWizard(view.getFilterItem().keyName);
|
||||||
}
|
}
|
||||||
} else if (payload.feature === view.getGroupsItem().featureName) {
|
} else if (payload.feature === view.getGroupsItem().featureName) {
|
||||||
if(view.manyGroupsSupport && payload.data.length > view._groupElementSwitchThreshold) {
|
if(view.manyGroupsSupport && payload.data.length > view._groupElementSwitchThreshold) {
|
||||||
|
|
|
@ -114,7 +114,7 @@
|
||||||
});
|
});
|
||||||
clipboard.on('error', function (e) {
|
clipboard.on('error', function (e) {
|
||||||
var $menu = $(e.trigger);
|
var $menu = $(e.trigger);
|
||||||
var $linkTextMenu = $menu.parent().next('li.linkTextMenu')
|
var $linkTextMenu = $menu.parent().next('li.linkTextMenu');
|
||||||
var $input = $linkTextMenu.find('.linkText');
|
var $input = $linkTextMenu.find('.linkText');
|
||||||
|
|
||||||
var actionMsg = '';
|
var actionMsg = '';
|
||||||
|
@ -393,8 +393,8 @@
|
||||||
|
|
||||||
var isLinkShare = this.model.get('linkShare').isLinkShare;
|
var isLinkShare = this.model.get('linkShare').isLinkShare;
|
||||||
var isPasswordSet = !!this.model.get('linkShare').password;
|
var isPasswordSet = !!this.model.get('linkShare').password;
|
||||||
var isPasswordEnforced = this.configModel.get('enforcePasswordForPublicLink')
|
var isPasswordEnforced = this.configModel.get('enforcePasswordForPublicLink');
|
||||||
var isPasswordEnabledByDefault = this.configModel.get('enableLinkPasswordByDefault') === true
|
var isPasswordEnabledByDefault = this.configModel.get('enableLinkPasswordByDefault') === true;
|
||||||
var showPasswordCheckBox = isLinkShare
|
var showPasswordCheckBox = isLinkShare
|
||||||
&& ( !this.configModel.get('enforcePasswordForPublicLink')
|
&& ( !this.configModel.get('enforcePasswordForPublicLink')
|
||||||
|| !this.model.get('linkShare').password);
|
|| !this.model.get('linkShare').password);
|
||||||
|
|
Loading…
Reference in a new issue