From 51cfa81cf1c9581ef59c54591a0c009eb6598e51 Mon Sep 17 00:00:00 2001 From: Lebbeous Fogle-Weekley Date: Mon, 13 Jun 2011 18:02:41 -0400 Subject: [PATCH] Trivial aesthetic change: only one "close window" button for the window, rather than one per note. Signed-off-by: Lebbeous Fogle-Weekley --- Open-ILS/xul/staff_client/server/serial/notes.xul | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/serial/notes.xul b/Open-ILS/xul/staff_client/server/serial/notes.xul index ef13e8e6d6..6c06e373cf 100644 --- a/Open-ILS/xul/staff_client/server/serial/notes.xul +++ b/Open-ILS/xul/staff_client/server/serial/notes.xul @@ -102,6 +102,7 @@ /* template */ var node = $('note_template').cloneNode(true); np.appendChild(node); node.hidden = false; apply(node,'create_date',g.notes[i].create_date().toString().substr(0,10)); + node.flex = 2; util.widgets.apply(node,'name','create_date', function(n) { n.setAttribute( @@ -155,11 +156,16 @@ } }(i), false ); - var spacer = document.createElement('spacer'); hb.appendChild(spacer); spacer.flex = 1; - var btn2 = document.createElement('button'); hb.appendChild(btn2); - btn2.setAttribute('label', $('catStrings').getString('staff.cat.copy_notes.delete_note.close_window')); - btn2.setAttribute('oncommand','window.close();'); } + var lowerhb = document.createElement('hbox'); + lowerhb.flex = 1; + lowerhb.align = 'end'; + np.appendChild(lowerhb); + var spacer = document.createElement('spacer'); + lowerhb.appendChild(spacer); spacer.flex = 1; + var btn2 = document.createElement('button'); lowerhb.appendChild(btn2); + btn2.setAttribute('label', $('catStrings').getString('staff.cat.copy_notes.delete_note.close_window')); + btn2.setAttribute('oncommand','window.close();'); } -- 2.11.0