1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Pman.Dialog');
7 Pman.Dialog.FileView= function() {}
8 Roo.apply(Pman.Dialog.FileView.prototype, {
11 'd7778d0c64b6ba21494c97f77a66885a' :"Filter",
12 '689202409e48743b914713f96d93947c' :"Value",
13 '5b31f5026bb07829f7a815555dbf91ae' :"File Preview XXX.pdf"
19 show : function(data, cb)
27 this.dialog.show(this.data._el);
30 this.form.setValues(data);
31 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
39 this.dialog = Roo.factory({
42 title : _this._strings['5b31f5026bb07829f7a815555dbf91ae'] /* File Preview XXX.pdf */,
44 show : function (_self)
46 _this.dialog.items[0].getRegion('center').showPanel(0);
50 '|xns' : 'Roo.bootstrap',
54 xns : Roo.bootstrap.layout,
55 '|xns' : 'Roo.bootstrap.layout',
58 xns : Roo.bootstrap.layout,
59 '|xns' : 'Roo.bootstrap.layout'
65 xns : Roo.bootstrap.layout,
66 '|xns' : 'Roo.bootstrap.layout'
75 activate : function (_self)
80 xns : Roo.bootstrap.panel,
81 '|xns' : 'Roo.bootstrap.panel',
87 render : function (_self)
93 '|xns' : 'Roo.bootstrap',
95 xtype : 'SimpleStore',
99 [ 'School Code:', '' ],
102 fields : [ 'filter' , 'value' ],
108 xtype : 'RowSelectionModel',
111 selectionchange : function (_self)
114 _this.removeBtn.hide();
116 var s = this.getSelected();
119 _this.preview.setUrl( baseURL + '/Preview/' + s.data.id + '.html');
121 if (s.data.is_approved) {
122 _this.removeBtn.show();
129 xns : Roo.bootstrap.Table,
130 '|xns' : 'Roo.bootstrap.Table'
134 xtype : 'ColumnModel',
136 header : _this._strings['d7778d0c64b6ba21494c97f77a66885a'] /* Filter */,
142 xtype : 'ColumnModel',
143 dataIndex : 'is_approved',
144 header : _this._strings['689202409e48743b914713f96d93947c'] /* Value */,
145 renderer : function(v,x,r) {
159 xns : Roo.bootstrap.panel,
160 '|xns' : 'Roo.bootstrap.panel'
168 Roo.apply(Pman.Dialog.FileView, Pman.Dialog.FileView.prototype);