From df0272b03f3b67745f624c94790aae1f0327c09a Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 16 Apr 2009 20:37:29 +0000 Subject: [PATCH] more notes tweaks git-svn-id: svn://svn.open-ils.org/ILS/trunk@12896 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/css/skin/default/acq.css | 5 ++++- Open-ILS/web/js/ui/default/acq/common/li_table.js | 24 ++++++++++------------ .../web/templates/default/acq/common/li_table.tt2 | 6 +++--- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/Open-ILS/web/css/skin/default/acq.css b/Open-ILS/web/css/skin/default/acq.css index bc028318dc..bcce4cec31 100644 --- a/Open-ILS/web/css/skin/default/acq.css +++ b/Open-ILS/web/css/skin/default/acq.css @@ -102,8 +102,11 @@ #acq-lit-li-details-table th {padding:0px 3px 1px 3px; font-weight:bold;} #acq-lit-li-details-table .dijit {width:130px;} #acq-lit-li-details-table td input {width:100px;} -.acq-lit-note-textarea div { padding: 2px 5px 2px 5px; } +.acq-lit-note-textarea { border-right: 2px solid #aaa; width:50%;} +.acq-lit-note-textarea div { padding: 4px; font-weight: bold; } +#acq-lit-notes-tbody td {padding: 20px 10px 20px 10px; border-bottom:2px solid #aaa;} .acq-lit-li-menu-bar {width:99%; text-align:left; border:1px solid #aaa; margin:5px 0px 10px 0px;} .acq-lit-table-spacer { height:20px; } .acq-lit-row td[name="selector"] { width:1.5em; font-weight:bold; color:blue; font-size:110%;} + diff --git a/Open-ILS/web/js/ui/default/acq/common/li_table.js b/Open-ILS/web/js/ui/default/acq/common/li_table.js index 4097f440bf..e9e300fe96 100644 --- a/Open-ILS/web/js/ui/default/acq/common/li_table.js +++ b/Open-ILS/web/js/ui/default/acq/common/li_table.js @@ -138,19 +138,8 @@ function AcqLiTable() { this.addLineitem = function(li) { this.liCache[li.id()] = li; - // sort the lineitem notes on create_time - if(li.lineitem_notes()) { - li.lineitem_notes( - li.lineitem_notes().sort( - function(a, b) { - if(a.create_time() < b.create_time()) return 1; - return -1; - } - ) - ); - } else { - li.lineitem_notes([]); - } + // sort the lineitem notes on edit_time + if(!li.lineitem_notes()) li.lineitem_notes([]); var liWrapper = new openils.acq.Lineitem({lineitem:li}); var row = self.rowTemplate.cloneNode(true); @@ -183,6 +172,15 @@ function AcqLiTable() { this.drawLiNotes = function(li) { var self = this; + li.lineitem_notes( + li.lineitem_notes().sort( + function(a, b) { + if(a.edit_time() < b.edit_time()) return 1; + return -1; + } + ) + ); + while(this.liNotesTbody.childNodes[0]) this.liNotesTbody.removeChild(this.liNotesTbody.childNodes[0]); this.show('notes'); diff --git a/Open-ILS/web/templates/default/acq/common/li_table.tt2 b/Open-ILS/web/templates/default/acq/common/li_table.tt2 index 18ba76abca..e788124178 100644 --- a/Open-ILS/web/templates/default/acq/common/li_table.tt2 +++ b/Open-ILS/web/templates/default/acq/common/li_table.tt2 @@ -131,22 +131,22 @@ - +
+ - + - -- 2.11.0
Note Creator Create Time Editor Edit TimeValue
X