function js_post($url, $data) { js_start(); js_jquery_ajax($url, 'POST', http_build_query($data), 'document.body', 'function(data){ $("#result").html(data)}'); js_end(); }
"]').addClass('<?php echo $this->input->get('order') ? $this->input->get('order') : 'asc'; ?> '); <?php } else { ?> $('a.sortable[rel="title"]').addClass('asc'); <?php } ?> $('.delete').click( function() { if (confirm('Delete cannot be undone! Are you sure you want to do this?')) { $('#form').attr('action', '<?php echo site_url(ADMIN_PATH . '/navigations/delete'); ?> ').submit() } else { return false; } }); }); </script> <?php js_end();
function close_window() { js_begin(); js_ins("window.close();"); js_end(); }