| |
| Line 54 |
Line 54 |
| 54 |
this, true); |
54 |
this, true); |
| 55 |
} |
55 |
} |
| 56 |
|
56 |
|
|
|
|
function registerLinkEditor(field, onComplete) { |
|
|
58 |
var editor = new RB.widgets.InlineEditor({ |
|
|
59 |
el: field, |
|
|
60 |
cls: field + '-editor', |
|
|
61 |
showEditIcon: true, |
|
|
62 |
stripTags: true, |
|
|
|
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 |
|
| |