|
@@ -439,6 +439,19 @@ CascadingAddress.prototype.setAddress = function(targetAddr) { |
|
@@ -439,6 +439,19 @@ CascadingAddress.prototype.setAddress = function(targetAddr) { |
439
|
}
|
439
|
}
|
440
|
};
|
440
|
};
|
441
|
|
441
|
|
|
|
442
|
+// 重置地址
|
|
|
443
|
+CascadingAddress.prototype.reset = function() {
|
|
|
444
|
+ var items = $(this.config.el).find('.items-indicator'),
|
|
|
445
|
+ labels = this.config.indicators;
|
|
|
446
|
+
|
|
|
447
|
+ items.each(function(index, item) {
|
|
|
448
|
+ $(item).find('span.indicator-name').text(labels[index])
|
|
|
449
|
+ .next().val('')
|
|
|
450
|
+ .parent().next()
|
|
|
451
|
+ .find('span.checked').removeClass('checked').prev().hide();
|
|
|
452
|
+ });
|
|
|
453
|
+};
|
|
|
454
|
+
|
442
|
module.exports = function(options) {
|
455
|
module.exports = function(options) {
|
443
|
return new CascadingAddress(options);
|
456
|
return new CascadingAddress(options);
|
444
|
}; |
457
|
}; |