| console.log("response for save %o", response); | console.log("response for save %o", response); | ||||
| self.load_data(response.newdata); | self.load_data(response.newdata); | ||||
| }); | }); | ||||
| } | |||||
| } | |||||
| }//end of class Job | }//end of class Job | ||||
| //global GUI summary | |||||
| function get_wages() | |||||
| { | |||||
| var txt = $('div.wages div').html(); | |||||
| return parseInt(txt); | |||||
| } | |||||
| function set_wages(num){ | |||||
| $('div.wages div').html(num); | |||||
| } | |||||
| function set_working_hours(num){ | |||||
| $('input#woh').attr('value', num); | |||||
| } | |||||
| function get_working_hours(){ | |||||
| var txt = $('input#woh').attr('value'); | |||||
| return parseFloat(txt); | |||||
| } | |||||
| //modal box | |||||
| function set_modal_title(selector, title){ | |||||
| var s = 'div.'+ selector +' .ult_modal-title'; | |||||
| $(s).html(title); | |||||
| } | |||||
| function set_modal_content(selector, content){ | |||||
| var s = 'div.'+ selector +' div.ult_modal-body.ult-html'; | |||||
| $(s).html(content); | |||||
| } | |||||
| set_modal_title('abcdefg', 'suck title'); | |||||
| set_modal_content('abcdefg', 'fucking details'); | |||||
| /*________________________________________________________________________*/ | /*________________________________________________________________________*/ | ||||
| }); | }); | ||||
| })(jQuery); | })(jQuery); |