www/js/inv_suppliers.js

changeset 563
acdd54144838
parent 528
202272a28052
child 702
f0896a6f9b64
equal deleted inserted replaced
562:ee28b3303da2 563:acdd54144838
151 showstatusbar: true, 151 showstatusbar: true,
152 renderstatusbar: function(statusbar) { 152 renderstatusbar: function(statusbar) {
153 var addButton, container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>'); 153 var addButton, container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>');
154 addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' + 154 addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' +
155 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Nieuw</span></div>'); 155 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Nieuw</span></div>');
156 expButton = $('<div style="float: right; margin-right: 50px;"><img style="position: relative; margin-top: 2px;" ' +
157 'src="images/database.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Export</span></div>');
156 container.append(addButton); 158 container.append(addButton);
159 container.append(expButton);
157 statusbar.append(container); 160 statusbar.append(container);
158 addButton.jqxButton({ theme: theme, width: 90, height: 20 }); 161 addButton.jqxButton({ theme: theme, width: 90, height: 20 });
162 expButton.jqxButton({ theme: theme, width: 90, height: 20 });
159 // add new row. 163 // add new row.
160 addButton.click(function(event) { 164 addButton.click(function(event) {
161 editrow = -1; 165 editrow = -1;
162 $('#popupWindow').jqxWindow({ position: { x: 110, y: 30 } }); 166 $('#popupWindow').jqxWindow({ position: { x: 110, y: 30 } });
163 $('#name').val('Nieuwe leverancier'); 167 $('#name').val('Nieuwe leverancier');
168 $('#website').val(''); 172 $('#website').val('');
169 $('#email').val(''); 173 $('#email').val('');
170 $('#phone').val(''); 174 $('#phone').val('');
171 $('#notes').val(''); 175 $('#notes').val('');
172 $('#popupWindow').jqxWindow('open'); 176 $('#popupWindow').jqxWindow('open');
177 });
178 expButton.click(function(event) {
179 window.open('export_suppliers.php');
173 }); 180 });
174 }, 181 },
175 filterable: false, 182 filterable: false,
176 columns: [ 183 columns: [
177 { text: 'Leverancier naam', datafield: 'name' }, 184 { text: 'Leverancier naam', datafield: 'name' },

mercurial