www/js/inv_yeasts.js

changeset 311
f6fafccd8a6d
parent 286
124af734af68
child 313
9f45d09c2071
equal deleted inserted replaced
310:b316b88ebe12 311:f6fafccd8a6d
202 theme: theme, 202 theme: theme,
203 showstatusbar: true, 203 showstatusbar: true,
204 renderstatusbar: function (statusbar) { 204 renderstatusbar: function (statusbar) {
205 var container = $("<div style='overflow: hidden; position: relative; margin: 5px;'></div>"); 205 var container = $("<div style='overflow: hidden; position: relative; margin: 5px;'></div>");
206 var addButton = $("<div style='float: right; margin-right: 15px;'><img style='position: relative; margin-top: 2px;' src='images/add.png'/><span style='margin-left: 4px; position: relative; top: -3px;'>Nieuw</span></div>"); 206 var addButton = $("<div style='float: right; margin-right: 15px;'><img style='position: relative; margin-top: 2px;' src='images/add.png'/><span style='margin-left: 4px; position: relative; top: -3px;'>Nieuw</span></div>");
207 var impButton = $("<div style='float: right; margin-right: 50px;'><img style='position: relative; margin-top: 2px;' src='images/add.png'/><span style='margin-left: 4px; position: relative; top: -3px;'>Import</span></div>");
207 container.append(addButton); 208 container.append(addButton);
209 container.append(impButton);
208 statusbar.append(container); 210 statusbar.append(container);
209 addButton.jqxButton({ theme: theme, width: 90, height: 20 }); 211 addButton.jqxButton({ theme: theme, width: 90, height: 20 });
212 impButton.jqxButton({ theme: theme, width: 90, height: 20 });
210 // add new row. 213 // add new row.
211 addButton.click(function (event) { 214 addButton.click(function (event) {
212 editrow = -1; 215 editrow = -1;
213 $("#popupWindow").jqxWindow({ position: { x: 110, y: 30 } }); 216 $("#popupWindow").jqxWindow({ position: { x: 110, y: 30 } });
214 $("#name").val(''); 217 $("#name").val('');
227 $("#cost").val(0); 230 $("#cost").val(0);
228 $("#production_date").val(''); 231 $("#production_date").val('');
229 $("#tht_date").val(''); 232 $("#tht_date").val('');
230 $("#cells").val(1); 233 $("#cells").val(1);
231 $("#popupWindow").jqxWindow('open'); 234 $("#popupWindow").jqxWindow('open');
235 });
236 impButton.click(function (event) {
237 var url="import_ingredients.php?select=yeasts";
238 window.location.href = url;
232 }); 239 });
233 }, 240 },
234 filterable: true, 241 filterable: true,
235 filtermode: 'excel', 242 filtermode: 'excel',
236 columns: [ 243 columns: [

mercurial