www/js/inv_waters.js

changeset 563
acdd54144838
parent 528
202272a28052
child 662
4bb005694ce7
equal deleted inserted replaced
562:ee28b3303da2 563:acdd54144838
163 showstatusbar: true, 163 showstatusbar: true,
164 renderstatusbar: function(statusbar) { 164 renderstatusbar: function(statusbar) {
165 var addButton, container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>'); 165 var addButton, container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>');
166 addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' + 166 addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' +
167 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Nieuw</span></div>'); 167 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Nieuw</span></div>');
168 expButton = $('<div style="float: right; margin-right: 50px;"><img style="position: relative; margin-top: 2px;" ' +
169 'src="images/database.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Export</span></div>');
168 container.append(addButton); 170 container.append(addButton);
171 container.append(expButton);
169 statusbar.append(container); 172 statusbar.append(container);
170 addButton.jqxButton({ theme: theme, width: 90, height: 20 }); 173 addButton.jqxButton({ theme: theme, width: 90, height: 20 });
174 expButton.jqxButton({ theme: theme, width: 90, height: 20 });
171 // add new row. 175 // add new row.
172 addButton.click(function(event) { 176 addButton.click(function(event) {
173 editrow = -1; 177 editrow = -1;
174 $('#popupWindow').jqxWindow({ position: { x: 110, y: 30 } }); 178 $('#popupWindow').jqxWindow({ position: { x: 110, y: 30 } });
175 $('#name').val('Nieuw brouwwater'); 179 $('#name').val('Nieuw brouwwater');
184 $('#notes').val(''); 188 $('#notes').val('');
185 $('#total_alkalinity').val(0); 189 $('#total_alkalinity').val(0);
186 $('#inventory').val(0); 190 $('#inventory').val(0);
187 $('#cost').val(0); 191 $('#cost').val(0);
188 $('#popupWindow').jqxWindow('open'); 192 $('#popupWindow').jqxWindow('open');
193 });
194 expButton.click(function(event) {
195 window.open('export_waters.php');
189 }); 196 });
190 }, 197 },
191 filterable: false, 198 filterable: false,
192 columns: [ 199 columns: [
193 { text: 'Water leverancier', datafield: 'name', width: 225 }, 200 { text: 'Water leverancier', datafield: 'name', width: 225 },

mercurial