/* 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(
} }(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();');
}