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

Commit fe8c43f

Browse files
committed
Fix "userPage" ID getting dropped from transactions and settings views, which caused the theme to not be applied to those pages.
Fix contract details and other elements that should have been hidden that were overlapping parts of the transactionModal instead.
1 parent 58a1b2f commit fe8c43f

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

js/router.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ module.exports = Backbone.Router.extend({
196196
this.viewCache[index] = {
197197
cachedAt: Date.now(),
198198
view: this.view
199-
}
199+
};
200200
},
201201

202202
newView: function(View, options) {
@@ -249,7 +249,7 @@ module.exports = Backbone.Router.extend({
249249
this.view.$el.detach();
250250
this.trigger('cache-detached', { view: this.view });
251251
} else {
252-
this.view.close ? this.view.close() : this.view.remove()
252+
this.view.close ? this.view.close() : this.view.remove();
253253
}
254254
}
255255

@@ -345,7 +345,7 @@ module.exports = Backbone.Router.extend({
345345
},
346346

347347
index: function(){
348-
if(localStorage.getItem("route")){
348+
if (localStorage.getItem("route")){
349349
this.navigate('#' + localStorage.getItem("route"), {trigger: true});
350350
} else {
351351
this.navigate('#home', {trigger: true});
@@ -437,7 +437,7 @@ module.exports = Backbone.Router.extend({
437437
orderID: orderID,
438438
tabState: tabState //opens a tab in the order modal
439439
},
440-
bodyID: 'transactionsPage'
440+
bodyID: 'userPage'
441441
});
442442

443443
app.appBar.setTitle(window.polyglot.t('Transactions'));
@@ -452,7 +452,8 @@ module.exports = Backbone.Router.extend({
452452
userProfile: this.userProfile,
453453
state: state,
454454
socketView: this.socketView
455-
}
455+
},
456+
bodyID: 'userPage'
456457
});
457458

458459
app.appBar.setTitle(window.polyglot.t('Settings'));

js/templates/transactionModal.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h2 class="ion-android-close clickable"></h2>
66
<% if(ob.invalidData){ %>
77
<div class="fullCentered"><h2><%= polyglot.t('errorMessages.serverError') %></h2></div>
88
<% } else { %>
9-
<div class="modal-hero js-transactionHero shadow-inner1-light"
9+
<div class="modal-hero js-transactionHero shadow-inner1-light overflowHidden"
1010
<% if(ob.vendor_offer.listing.item.image_hashes){ %>
1111
style="background-image: url(<%= ob.serverUrl %>get_image?hash=<%= ob.vendor_offer.listing.item.image_hashes[0] %>&guid=<%=ob.vendor_offer.listing.id.guid %>), url(imgs/defaultBanner.png);"
1212
<% } else { %>

js/views/pageVw.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ PageVw = BaseVw.extend({
1212
// when it's deciding whether to create a new one or use a cached one.
1313
PageVw.getCacheIndex = function(fragment) {
1414
if (!fragment) {
15-
throw new Error('The fragment is empty. If you want your view to support being ' +
16-
'indexed by an empty fragment, please override this method in your view ' +
15+
throw new Error('The fragment is empty. If you want your view to support being '+
16+
'indexed by an empty fragment, please override this method in your view '+
1717
'and return a hard-coded string identifier if an empty fragment is passed in.');
1818
}
1919

0 commit comments

Comments
 (0)