mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Issue #64 - After editing a qso and submitting if no errors it closes box
This commit is contained in:
@@ -86,7 +86,7 @@ class QSO extends CI_Controller {
|
||||
{
|
||||
$this->logbook_model->edit();
|
||||
$this->session->set_flashdata('notice', 'Record Updated');
|
||||
redirect('qso/edit/'.$this->input->post('id'));
|
||||
$this->load->view('qso/edit_done');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
<div style="float: right; padding-right: 60px; padding-top: 30px;">
|
||||
<p><a href="<?php echo site_url('qso/delete'); ?>/<?php echo $COL_PRIMARY_KEY; ?>" >Delete QSO <img src="<?php echo base_url(); ?>/images/delete.png" width="16" height="16" alt="Delete" /></a></p>
|
||||
</div>
|
||||
@@ -122,7 +123,7 @@
|
||||
</table>
|
||||
|
||||
<input type="hidden" name="id" value="<?php echo $this->uri->segment(3); ?>" />
|
||||
<div><input type="submit" value="Submit" /></div>
|
||||
<div><input type="submit" value="Submit" onclick="closeME();" /></div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
14
application/views/qso/edit_done.php
Normal file
14
application/views/qso/edit_done.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title></title>
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
parent.$.fancybox.close();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user