...
|
...
|
@@ -25,10 +25,12 @@ LeaveMSGView.prototype = $.extend({}, EventEmitter.prototype, { |
|
|
let self = this;
|
|
|
|
|
|
this.$elem
|
|
|
.on('click', '.chat-page-back', function() {
|
|
|
.on('click', '.chat-page-back', function(event) {
|
|
|
event.stopPropagation();
|
|
|
self.toggleHide(true);
|
|
|
})
|
|
|
.on('click.LeavseMSG.submit', '.leave-submit', function() {
|
|
|
event.stopPropagation();
|
|
|
self.submit();
|
|
|
});
|
|
|
|
...
|
...
|
@@ -42,7 +44,7 @@ LeaveMSGView.prototype = $.extend({}, EventEmitter.prototype, { |
|
|
toggleHide(willHide) {
|
|
|
this.$elem.toggleClass('chat-page-hide', willHide);
|
|
|
|
|
|
return this;
|
|
|
return false;
|
|
|
},
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -101,6 +103,8 @@ RatingView.prototype = $.extend({}, EventEmitter.prototype, { |
|
|
|
|
|
this.elem
|
|
|
.on('click.RatingView.rating', '.stars i', function(event) {
|
|
|
event.stopPropagation();
|
|
|
|
|
|
let starVal = $(this).index();
|
|
|
|
|
|
self.rating(starVal);
|
...
|
...
|
@@ -169,6 +173,8 @@ RatingView.prototype = $.extend({}, EventEmitter.prototype, { |
|
|
}
|
|
|
this.elem.toggle(willShow);
|
|
|
this.rating(4);
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
@@ -202,10 +208,12 @@ OrderListView.prototype = $.extend({}, EventEmitter.prototype, { |
|
|
const self = this;
|
|
|
|
|
|
this.$elem
|
|
|
.on('click.OrderListView.back', '.chat-page-back', function() {
|
|
|
.on('click.OrderListView.back', '.chat-page-back', function(event) {
|
|
|
event.stopPropagation();
|
|
|
self.toggleHide(true);
|
|
|
})
|
|
|
.on('click.OrderListView.select', '[data-action=select]', function() {
|
|
|
.on('click.OrderListView.select', '[data-action=select]', function(event) {
|
|
|
event.stopPropagation();
|
|
|
self.selectOrder($(event.target));
|
|
|
});
|
|
|
|
...
|
...
|
|