Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(882)

Unified Diff: appengine/chromium_rietveld/new_static/components/cr-issue-patchsets.html

Issue 1152723005: Expand patchset if patchsetID provided in URL (Closed) Base URL: https://chromium.googlesource.com/infra/infra@master
Patch Set: Display patchset id Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/chromium_rietveld/new_static/components/cr-issue-patchsets.html
diff --git a/appengine/chromium_rietveld/new_static/components/cr-issue-patchsets.html b/appengine/chromium_rietveld/new_static/components/cr-issue-patchsets.html
index 5d753ebd86e2c17b42a8c34e72f82c98ad4343e7..20d423cbf3f7a9949c6bc2135ae6ab129c418a48 100644
--- a/appengine/chromium_rietveld/new_static/components/cr-issue-patchsets.html
+++ b/appengine/chromium_rietveld/new_static/components/cr-issue-patchsets.html
@@ -76,11 +76,19 @@ found in the LICENSE file. -->
this.olderPatchsets = null;
this.currentPatchset = null;
},
+ attached: function() {
+ if (window.location.hash.startsWith('#ps')) {
+ var psId = parseInt(window.location.hash.substring(3));
+ this.showOlderPatchsets = true;
+ this.patchsets.forEach(function(patchset) {
+ patchset.active = (patchset.id == psId);
+ });
+ }
+ },
patchsetsChanged: function(oldValue, newValue) {
var value = newValue || [];
this.olderPatchsets = value.to(-1);
this.currentPatchset = value.last();
- this.showOlderPatchsets = false;
},
pluralize: function(text, count) {
if (!count)

Powered by Google App Engine
This is Rietveld 408576698