var self = this;
var row = self.liNotesRow.cloneNode(true);
nodeByName("value", row).innerHTML = note.value();
- if (note.alert_text())
- nodeByName("alert_code", row).innerHTML = note.alert_text().code();
+ var alert_node = nodeByName("alert_code", row);
+ if (note.alert_text()) {
+ alert_node.innerHTML = note.alert_text().code();
+ if (note.alert_text().description()) {
+ new dijit.Tooltip(
+ {
+ "connectId": [alert_node],
+ "label": note.alert_text().description()
+ }, dojo.create("span", null, alert_node, "after")
+ );
+ }
+ }
nodeByName("delete", row).onclick = function() {
note.isdeleted(true);
<span>New Alert</span>
<div dojoType="dijit.TooltipDialog">
<div class="acq-lit-note-row">
- <label for="acq-lit-alert-alert-text">Choose alert code </label>
+ <label for="acq-lit-alert-alert-text">Choose alert code </label>
<input id="acq-lit-alert-alert-text" jsId="acqLitAlertAlertText" dojoType="dijit.form.FilteringSelect" labelAttr="code" searchAttr="code" required="true" />
</div>
<div class="acq-lit-note-row">
- <label for="acq-lit-alert-value">Optional description</label>
+ <label for="acq-lit-alert-value">Additional comments</label>
<div jsId="acqLitAlertNoteValue" id="acq-lit-alert-value" dojoType="dijit.form.Textarea" name="value"></div>
</div>
<button jsId="acqLitCreateAlertSubmit" dojoType="dijit.form.Button" type="submit">Create</button>