Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 82943e6

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/master' into tweekIndexes
2 parents b3e39ea + 8a3b0ba commit 82943e6

File tree

7 files changed

+68
-43
lines changed

7 files changed

+68
-43
lines changed

css/obBase.css

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,10 @@ form {
198198
transition: width 0.5s ease;
199199
}
200200

201-
#ov1 .chatOpen #obContainer {
201+
#ov1.chatOpen #obContainer {
202202
width: calc(100% - 230px);
203203
}
204204

205-
/*#ov1 .chatOpen #obContainer::-webkit-scrollbar {
206-
width: 0;
207-
}
208-
*/
209205
#pageNav {
210206
position: fixed;
211207
top: 0;
@@ -985,7 +981,7 @@ label.fieldItem {
985981
transition: right 0.5s ease;
986982
}
987983

988-
#ov1 .chatOpen .modal-child {
984+
#ov1.chatOpen .modal-child {
989985
right: 230px;
990986
}
991987

@@ -1131,7 +1127,7 @@ label.fieldItem {
11311127
transition: margin-left 0.5s ease;
11321128
}
11331129

1134-
#ov1 .chatOpen #colorbox {
1130+
#ov1.chatOpen #colorbox {
11351131
margin-left: -115px;
11361132
}
11371133

@@ -3525,7 +3521,7 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
35253521
opacity: .90;
35263522
}
35273523
3528-
#ov1 .chatOpen .spinner-with-logo {
3524+
#ov1.chatOpen .spinner-with-logo {
35293525
left: calc(50% - 115.5px);
35303526
}
35313527
@@ -3807,6 +3803,7 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
38073803
line-height: 16px;
38083804
opacity: 1;
38093805
white-space: nowrap;
3806+
pointer-events: none;
38103807
}
38113808
38123809
.tooltip.tooltip-left:hover:after{
@@ -4188,7 +4185,7 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
41884185
transition: transform 0.5s ease;
41894186
}
41904187

4191-
#ov1 .chatOpen .page-connect-modal .content {
4188+
#ov1.chatOpen .page-connect-modal .content {
41924189
transform: translateX(-115.5px);
41934190
}
41944191

js/languages/en-US.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@
189189
"AboutPlaceholder": "Full description",
190190
"BackgroundColor": "Background Color",
191191
"NotificationPaymentSent": "Payment was sent to",
192+
"NotificationPaymentReceived": "Payment was received from",
192193
"NotificationOrderFor": "placed an order for",
193194
"NotificationOrderConfirmed": "Your order has been confirmed/shipped",
194195
"NotificationFollow": "is now following you",

js/templates/notification.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,18 @@
4848
</span>
4949
</div>
5050
<div class="textSize11px txt-fade"><%= ob.moment(new Date(ob.timestamp*1000)).format('MMM D, h:mm A') %></div>
51+
<% } else if(ob.type == "rating received") { %>
52+
<div class="textSize12px">
53+
<%= polyglot.t('NotificationPaymentReceived') %>
54+
<span>
55+
<% if(ob.handle) { %>
56+
<%= ob.handle %>.
57+
<% }else{ %>
58+
<span class="noOverflow width91 inlineBlock top3 tooltip" data-tooltip="<%= ob.guid %>"><%= ob.guid %></span>
59+
<% } %>
60+
</span>
61+
</div>
62+
<div class="textSize11px txt-fade"><%= ob.moment(new Date(ob.timestamp*1000)).format('MMM D, h:mm A') %></div>
5163
<% } else if(ob.type == "new order") { %>
5264
<div class="textSize12px clearFix">
5365
<span>

js/views/homeVw.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,6 @@ module.exports = baseVw.extend({
439439
},
440440

441441
searchItems: function(searchItemsText){
442-
console.log("search items "+searchItemsText)
443442
if(searchItemsText){
444443
this.searchItemsText = searchItemsText;
445444
this.clearItems();

js/views/notificationVw.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ module.exports = baseVw.extend({
3131
Backbone.history.navigate('#transactions/purchases/' + this.model.get('order_id'), {trigger: true});
3232
break;
3333
case "payment received":
34+
Backbone.history.navigate('#transactions/purchases/' + this.model.get('order_id'), {trigger: true});
35+
break;
36+
case "rating received":
3437
Backbone.history.navigate('#transactions/sales/' + this.model.get('order_id'), {trigger: true});
3538
break;
3639
case "order confirmation":

js/views/pageNavVw.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,9 @@ module.exports = baseVw.extend({
479479

480480
untrimAddressBar: function(){
481481
this.addressInput.val(function (i, value) {
482-
value = value.startsWith('ob://') ? value : 'ob://' + value;
482+
if(value) {
483+
value = value.startsWith('ob://') ? value : 'ob://' + value;
484+
}
483485
return value;
484486
});
485487
},

js/views/transactionModalVw.js

Lines changed: 43 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ module.exports = baseVw.extend({
310310
var self = this,
311311
targetForm = this.$el.find('#transactionConfirmForm'),
312312
confirmData = {},
313-
confirmStatus;
313+
confirmStatus,
314+
targBtn = $(e.target);
314315

315316
confirmData.id = this.orderID;
316317
confirmStatus = app.statusBar.pushMessage({
@@ -319,37 +320,47 @@ module.exports = baseVw.extend({
319320
duration: false
320321
});
321322

322-
saveToAPI(targetForm, '', this.serverUrl + "confirm_order", function(data){
323-
confirmStatus.updateMessage({
324-
type: 'confirmed',
325-
msg: '<i>' + window.polyglot.t('transactions.UpdateComplete') + '</i>'
326-
});
327-
setTimeout(function(){
328-
confirmStatus && confirmStatus.remove();
329-
},3000);
330-
}, function(data){
331-
//onFail
332-
confirmStatus.updateMessage({
333-
type: 'warning',
334-
msg: '<i>' + window.polyglot.t('transactions.UpdateFailed') + '</i>',
335-
duration: 3000
336-
});
337-
setTimeout(function(){
338-
confirmStatus && confirmStatus.remove();
339-
},3000);
340-
}, confirmData, '', function(){
341-
//onInvalid
342-
confirmStatus.updateMessage({
343-
type: 'warning',
344-
msg: '<i>' + window.polyglot.t('transactions.UpdateInvalid') + '</i>',
345-
duration: 3000
346-
});
347-
setTimeout(function(){
348-
confirmStatus && confirmStatus.remove();
349-
},3000);
350-
}, e);
351-
352-
this.closeModal();
323+
targBtn.addClass("loading");
324+
325+
saveToAPI(targetForm, '', this.serverUrl + "confirm_order",
326+
function(data){
327+
self.closeModal();
328+
confirmStatus.updateMessage({
329+
type: 'confirmed',
330+
msg: '<i>' + window.polyglot.t('transactions.UpdateComplete') + '</i>'
331+
});
332+
setTimeout(function(){
333+
confirmStatus && confirmStatus.remove();
334+
},3000);
335+
},
336+
/*(function(data){
337+
//onFail
338+
confirmStatus.updateMessage({
339+
type: 'warning',
340+
msg: '<i>' + window.polyglot.t('transactions.UpdateFailed') + '</i>',
341+
duration: 3000
342+
});
343+
setTimeout(function(){
344+
confirmStatus && confirmStatus.remove();
345+
},3000);
346+
}*/'',
347+
confirmData, '',
348+
/*function(){
349+
//onInvalid
350+
confirmStatus.updateMessage({
351+
type: 'warning',
352+
msg: '<i>' + window.polyglot.t('transactions.UpdateInvalid') + '</i>',
353+
duration: 3000
354+
});
355+
setTimeout(function(){
356+
confirmStatus && confirmStatus.remove();
357+
},3000);
358+
}*/'')
359+
.always(function(){
360+
targBtn.removeClass("loading");
361+
});
362+
363+
// this.closeModal();
353364
},
354365

355366
completeOrder: function(e){

0 commit comments

Comments
 (0)