mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
WebUI: ensure consistent shorthand syntax
This commit is contained in:
parent
70dbe9468a
commit
1077cbba2b
2 changed files with 3 additions and 2 deletions
|
@ -34,6 +34,7 @@ export default [
|
|||
"no-undef": "off",
|
||||
"no-unused-vars": "off",
|
||||
"no-var": "error",
|
||||
"object-shorthand": ["error", "consistent"],
|
||||
"operator-assignment": "error",
|
||||
"prefer-arrow-callback": "error",
|
||||
"prefer-const": "error",
|
||||
|
|
|
@ -22,7 +22,7 @@ window.qBittorrent.MultiRename ??= (() => {
|
|||
|
||||
// Search Options
|
||||
_inner_search: "",
|
||||
setSearch(val) {
|
||||
setSearch: function(val) {
|
||||
this._inner_search = val;
|
||||
this._inner_update();
|
||||
this.onChanged(this.matchedFiles);
|
||||
|
@ -33,7 +33,7 @@ window.qBittorrent.MultiRename ??= (() => {
|
|||
|
||||
// Replacement Options
|
||||
_inner_replacement: "",
|
||||
setReplacement(val) {
|
||||
setReplacement: function(val) {
|
||||
this._inner_replacement = val;
|
||||
this._inner_update();
|
||||
this.onChanged(this.matchedFiles);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue