mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 19:05:55 +00:00
cleanup some unused code, fix App.byId() invoked by wrong name
This commit is contained in:
@@ -355,14 +355,14 @@ class Pref_Prefs extends Handler_Protected {
|
||||
Notify.close();
|
||||
if (transport.responseText.indexOf('ERROR: ') == 0) {
|
||||
|
||||
$('pwd_change_infobox').innerHTML =
|
||||
App.byId('pwd_change_infobox').innerHTML =
|
||||
transport.responseText.replace('ERROR: ', '');
|
||||
|
||||
} else {
|
||||
$('pwd_change_infobox').innerHTML =
|
||||
App.byId('pwd_change_infobox').innerHTML =
|
||||
transport.responseText.replace('ERROR: ', '');
|
||||
|
||||
const warn = $('default_pass_warning');
|
||||
const warn = App.byId('default_pass_warning');
|
||||
if (warn) Element.hide(warn);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user