Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _insert_row: function(auto) {
- var self = this;
- self.com('pre_insert', {}, function(pre_insert_responce) {
- var new_row = pre_insert_responce.row;
- var new_row_num = auto.rows_total + '';
- new_row.row_num = new_row_num;
- auto.rows[new_row_num] = new_row;
- auto.row_insert = new_row_num;
- var fn_add_row = function(type) {
- auto.rows_total = auto.rows_total + 1;
- var new_row_html = '';
- new_row_html = self._row_rendering(auto, new_row_num, new_row, false, false);
- $('table.edyn_ctable_table', auto.subels.body).append(new_row_html);
- if(type=="M"){
- auto.mask.cache_load(self.options.visualization_mask, {}, function(){
- self._masks_load(auto, function(){
- self._edit_row(auto, new_row, true);
- });
- });
- } else {
- self._edit_row(auto, new_row, true);
- }
- };
- if (self.options.async_load)
- self._scroll_delta(auto, auto.rows_total-auto.rownum+1, fn_add_row);
- else {
- fn_add_row(self.options.visualization_type);
- }
- });
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement