bool wrappers
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 10 Aug 2006 21:15:29 +0000 (21:15 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 10 Aug 2006 21:15:29 +0000 (21:15 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5442 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/copy_notes.xul

index c376820..b4e0c0a 100644 (file)
                                        function(n){n.setAttribute("tooltiptext","Note ID: " + g.notes[i].id() + " Creator ID: " + g.notes[i].creator());}
                                );
                                apply(node,'title',g.notes[i].title());
-                               apply(node,'pub',g.notes[i].pub() ? "Public" : "Private");
+                               apply(node,'pub',get_bool( g.notes[i].pub() ) ? "Public" : "Private");
                                apply(node,'value',g.notes[i].value());
                                apply(node,'id',g.notes[i].id());
                                apply(node,'creator',g.notes[i].creator());
                                        note.isnew(1);
                                        note.title( g.data.fancy_prompt_data.title );
                                        note.value( g.data.fancy_prompt_data.note );
-                                       note.pub( g.data.fancy_prompt_data.pub? 't' : 'f' );
+                                       note.pub( get_bool( g.data.fancy_prompt_data.pub ) ? get_db_true() : get_db_false() );
                                        note.owning_copy( g.copy_id );
                                        var r = g.network.simple_request('FM_ACPN_CREATE',[ ses(), note ]);
                                        if (typeof r.ilsevent != 'undefined') throw(r);