[open-ils-commits] r15667 - in trunk/Open-ILS/web: js/ui/default/acq/common templates/default/acq/common (senator)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Mar 2 18:05:23 EST 2010
Author: senator
Date: 2010-03-02 18:05:16 -0500 (Tue, 02 Mar 2010)
New Revision: 15667
Modified:
trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2
Log:
Acq: add a tooltip to show lineitem alert text description along with code
Modified: trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2010-03-02 22:36:39 UTC (rev 15666)
+++ trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2010-03-02 23:05:16 UTC (rev 15667)
@@ -410,8 +410,18 @@
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);
Modified: trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2 2010-03-02 22:36:39 UTC (rev 15666)
+++ trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2 2010-03-02 23:05:16 UTC (rev 15667)
@@ -151,11 +151,11 @@
<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>
More information about the open-ils-commits
mailing list