Added JS for dialog
这个提交包含在:
父节点
03b25d00d5
当前提交
e30ea7a493
共有 2 个文件被更改,包括 40 次插入 和 0 次删除
|
|
@ -1432,5 +1432,41 @@ $(document).ready(function(){
|
|||
|
||||
</script>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->uri->segment(2) == "was") { ?>
|
||||
<script src="<?php echo base_url(); ?>assets/js/bootstrapdialog/js/bootstrap-dialog.min.js"></script>
|
||||
<script>
|
||||
function displayWasContacts(was, band) {
|
||||
$.ajax({
|
||||
url: 'include/get/getContacts.php',
|
||||
type: 'post',
|
||||
data: {'was': was,
|
||||
'band': band
|
||||
},
|
||||
success: function(html) {
|
||||
BootstrapDialog.show({
|
||||
onshown: function (dialogRef) {
|
||||
$('.qsotable').DataTable({
|
||||
"pageLength": 10,
|
||||
responsive: true,
|
||||
ordering: false
|
||||
});
|
||||
},
|
||||
title: 'QSO Data',
|
||||
size: BootstrapDialog.SIZE_WIDE,
|
||||
nl2br: false,
|
||||
message: html,
|
||||
buttons: [{
|
||||
label: 'Close',
|
||||
action: function (dialogItself) {
|
||||
dialogItself.close();
|
||||
}
|
||||
}]
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<?php } ?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -29,6 +29,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/ldbtn.min.css" />
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->uri->segment(2) == "was") { ?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/js/bootstrapdialog/css/bootstrap-dialog.min.css" />
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->uri->segment(1) == "adif") { ?>
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/datepicker.css" />
|
||||
<?php } ?>
|
||||
|
|
|
|||
正在加载…
在新工单中引用