Browse Source

Safari hanging on password input creation

Fix #3997
pull/3376/merge
Ruud 11 years ago
parent
commit
e595722139
  1. 14
      couchpotato/static/scripts/page/settings.js

14
couchpotato/static/scripts/page/settings.js

@ -560,11 +560,19 @@ Option.Password = new Class({
create: function(){
var self = this;
self.parent();
self.input.set('type', 'password');
self.el.adopt(
self.createLabel(),
self.input = new Element('input.inlay', {
'type': 'text',
'name': self.postName(),
'value': self.getSettingValue() ? '********' : '',
'placeholder': self.getPlaceholder()
})
);
self.input.addEvent('focus', function(){
self.input.set('value', '')
self.input.set('value', '');
self.input.set('type', 'password');
})
}

Loading…
Cancel
Save