Replace sha widget by password
issue3713 review3791004
This commit is contained in:
1 parent
ecdb4348f6
commit
71f012dc8f
2 files changed
+6
-6
No files matched your search
+1
-1
@@ -648,7 +648,7 @@
|
||||
}
|
||||
var formatted_value = this.format_value(field, value, target);
|
||||
if (~this.OPERATORS.indexOf(operator) &&
|
||||
~['char', 'text', 'sha', 'selection']
|
||||
~['char', 'text', 'selection']
|
||||
.indexOf(field.type) &&
|
||||
(value === '')) {
|
||||
formatted_value = '""';
|
||||
|
||||
+5
-5
@@ -1426,8 +1426,8 @@
|
||||
switch (type) {
|
||||
case 'char':
|
||||
return Sao.View.Form.Char;
|
||||
case 'sha':
|
||||
return Sao.View.Form.Sha;
|
||||
case 'password':
|
||||
return Sao.View.Form.Password;
|
||||
case 'date':
|
||||
return Sao.View.Form.Date;
|
||||
case 'datetime':
|
||||
@@ -1580,10 +1580,10 @@
|
||||
}
|
||||
});
|
||||
|
||||
Sao.View.Form.Sha = Sao.class_(Sao.View.Form.Char, {
|
||||
class_: 'form-sha',
|
||||
Sao.View.Form.Password = Sao.class_(Sao.View.Form.Char, {
|
||||
class_: 'form-password',
|
||||
init: function(field_name, model, attributes) {
|
||||
Sao.View.Form.Sha._super.init.call(this, field_name, model,
|
||||
Sao.View.Form.Password._super.init.call(this, field_name, model,
|
||||
attributes);
|
||||
this.el.prop('type', 'password');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user