Topic Text   Topic Comments (4)   Topic Properties   Topic Information a@a.c...
Topic title: This is a test Tuesday November 17, 2009 18:04:19

Download topic text | View in monospace font | Tab width set to 4 (change to 8)

Files in topic: (view all files)  
trunk/reviewboard/htdocs/scripts/rb/widgets.js   {+0,-1}
trunk/reviewboard/htdocs/scripts/reviews.js   {+26,-0}
trunk/reviewboard/reviews/templatetags/reviewtags.py   {+7,-0}
trunk/reviewboard/scmtools/models.py   {+1,-0}
trunk/reviewboard/templates/reviews/review_detail.html   {+2,-1}
trunk/reviewboard/templates/reviews/review_request_box.html   {+3,-1}

[Add General Comment] to topic.

File trunk/reviewboard/htdocs/scripts/reviews.js (Revision 0.1) [Add File Comment] [<<] [Top] [>>]
 
Line 54 Line 54
54 this, true); 54 this, true);
55 } 55 }
56 56
57 function registerLinkEditor(field, onComplete) {
58 var editor = new RB.widgets.InlineEditor({
59 el: field,
60 cls: field + '-editor',
61 showEditIcon: true,
62 stripTags: true,
63 notifyUnchangedCompletion: true
64 });
65
66 editor.on('complete',
67 function(editor, value) {
68 onEditComplete(field, value, onComplete);
69 });
70 }
71
57 function registerCommaListEditor(field, onComplete) { 72 function registerCommaListEditor(field, onComplete) {
58 var editor = new RB.widgets.InlineCommaListEditor({ 73 var editor = new RB.widgets.InlineCommaListEditor({
59 el: field, 74 el: field,
 
 
Line 87 Line 102
87 el.dom.innerHTML = str; 102 el.dom.innerHTML = str;
88 } 103 }
89 104
105 function onBranchChanged(el, val) {
106 var str = "";
107 if (gSourceViewerURL != "") {
108 var url = gSourceViewerURL.replace("%s", val);
109 str = '<a href="' + url + '">' + val + '</a>';
110 } else {
111 str = val;
112 }
113 el.dom.innerHTML = str;
114 }
115
90 function onTargetPeopleChanged(el, list) { 116 function onTargetPeopleChanged(el, list) {
91 var str = ""; 117 var str = "";
92 118
 
File trunk/reviewboard/htdocs/scripts/reviews.js (Revision 0.1) [Add File Comment] [<<] [Top] [>>]
  
Legend:
Removed 
Changed
 Added

[Add General Comment] to topic.