mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
refactor(config) onChange: str -> regexp
This commit is contained in:
parent
fc0b8bdba3
commit
3410a98f93
1 changed files with 3 additions and 7 deletions
|
|
@ -174,14 +174,10 @@ var CloudCmd, Util, DOM, io;
|
|||
data = getValue(el);
|
||||
|
||||
if (type === 'checkbox')
|
||||
if (el.id === 'localStorage')
|
||||
if (/^(diff|buffer|dirStorage)$/.test(el.id))
|
||||
onLSChange(el);
|
||||
else if (el.id === 'localStorage')
|
||||
onLocalStorageChange();
|
||||
else if (el.id === 'diff')
|
||||
onLSChange(el);
|
||||
else if (el.id === 'buffer')
|
||||
onLSChange(el);
|
||||
else if (el.id === 'dirStorage')
|
||||
onLSChange(el);
|
||||
else if (el.id === 'auth')
|
||||
onAuthChange(data);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue