]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/external/template.js
Fix integrated subscription editor record field
[working/Evergreen.git] / Open-ILS / xul / staff_client / external / template.js
1 dump('entering example.template.js\n');
2
3 if (typeof example == 'undefined') example = {};
4 example.template = function (params) {
5     try {
6         JSAN.use('util.error'); this.error = new util.error();
7     } catch(E) {
8         dump('example.template: ' + E + '\n');
9     }
10 }
11
12 example.template.prototype = {
13
14     'init' : function( params ) {
15
16         try {
17             var obj = this;
18
19             JSAN.use('util.controller'); obj.controller = new util.controller();
20             obj.controller.init(
21                 {
22                     control_map : {
23                         'cmd_broken' : [
24                             ['command'],
25                             function() { alert('Not Yet Implemented'); }
26                         ],
27                     }
28                 }
29             );
30
31         } catch(E) {
32             this.error.sdump('D_ERROR','example.template.init: ' + E + '\n');
33         }
34     },
35 }
36
37 dump('exiting example.template.js\n');