JSAN.use('util.error'); error = new util.error();
error.sdump('D_TRACE','my_init() for main_test.xul');
- dojo.require('openils.PermaCrud');
+ /*if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
+ try { window.xulG.set_tab_name('Test'); } catch(E) { alert(E); }
+ }*/
- var types = new openils.PermaCrud(
+ JSAN.use('util.browser');
+ var volume_pane = new util.browser();
+ volume_pane.init(
{
- authtoken :ses()
- }
- ).retrieveAll('coust');
-
- dojo.forEach(types,
- function(type) {
- alert( js2JSON(type) );
+ 'url' : urls.XUL_VOLUME_COPY_CREATOR_ORIGINAL,
+ 'push_xulG' : true,
+ 'alt_print' : false,
+ 'browser_id' : 'volume_pane',
+ 'passthru_content_params' : xulG
}
);
- if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
- try { window.xulG.set_tab_name('Test'); } catch(E) { alert(E); }
- }
-
} catch(E) {
try { error.standard_unexpected_error_alert('main/test.xul',E); } catch(F) { alert(E); }
}
<script type="text/javascript" src="/xul/server/main/JSAN.js"/>
<script type="text/javascript" src="volume_copy_editor.js"/>
- <label value="retrieving coust's with dojo and PermaCrud..."/>
+ <vbox flex="1">
+ <browser id="volume_pane" flex="1" />
+ <splitter resizeafter="flex" resizebefore="flex"><grippy/></splitter>
+ <browser id="item_pane" flex="1" />
+ </vbox>
</window>