UI to associate bugs with an analysis task is crappy
[WebKit-https.git] / Websites / perf.webkit.org / public / v2 / manifest.js
index ef68cae5cc4ba5d2541dd2d383dc889fe1ca9343..b8af8e926761295adb645e0b504e6dd6d3e4b02b 100755 (executable)
@@ -52,6 +52,10 @@ App.BugTracker = App.NameLabelModel.extend({
     bugUrl: DS.attr('string'),
     newBugUrl: DS.attr('string'),
     repositories: DS.hasMany('repository'),
     bugUrl: DS.attr('string'),
     newBugUrl: DS.attr('string'),
     repositories: DS.hasMany('repository'),
+    urlFromBugNumber: function (bugNumber) {
+        var template = this.get('bugUrl');
+        return template && bugNumber ? template.replace(/\$number/g, bugNumber) : null;
+    }
 });
 
 App.DateArrayTransform = DS.Transform.extend({
 });
 
 App.DateArrayTransform = DS.Transform.extend({