refactor hideError + rename to hide
This commit is contained in:
parent
b7a8245af9
commit
650bacd915
3 changed files with 5 additions and 9 deletions
|
|
@ -29,7 +29,7 @@ BR.Message = L.Class.extend({
|
|||
}
|
||||
},
|
||||
|
||||
_hide: function (type) {
|
||||
hide: function () {
|
||||
$('#' + this.id + ' .alert').alert('close');
|
||||
},
|
||||
|
||||
|
|
@ -37,10 +37,6 @@ BR.Message = L.Class.extend({
|
|||
this._show(err, 'error');
|
||||
},
|
||||
|
||||
hideError: function () {
|
||||
this._hide('error');
|
||||
},
|
||||
|
||||
showWarning: function (msg) {
|
||||
this._show(msg, 'warning');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue