...
|
...
|
@@ -439,6 +439,19 @@ CascadingAddress.prototype.setAddress = function(targetAddr) { |
|
|
}
|
|
|
};
|
|
|
|
|
|
// 重置地址
|
|
|
CascadingAddress.prototype.reset = function() {
|
|
|
var items = $(this.config.el).find('.items-indicator'),
|
|
|
labels = this.config.indicators;
|
|
|
|
|
|
items.each(function(index, item) {
|
|
|
$(item).find('span.indicator-name').text(labels[index])
|
|
|
.next().val('')
|
|
|
.parent().next()
|
|
|
.find('span.checked').removeClass('checked').prev().hide();
|
|
|
});
|
|
|
};
|
|
|
|
|
|
module.exports = function(options) {
|
|
|
return new CascadingAddress(options);
|
|
|
}; |
...
|
...
|
|