I don't think I did anything to the javascript. The only thing I've done that might even remotely affect it is implement the changes from this post:
www.grocerycrud.com/forums/topic/1065-how-to-pass-extra-data-on-a-grocery-crud-view/
But I don't think that should break the JS...
Here's the code from my view:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Period Rolls of Arms</title>
<meta charset="utf-8" />
<?php
foreach($css_files as $file): ?>
<link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
<?php endforeach; ?>
<?php foreach($js_files as $file): ?>
<script src="<?php echo $file; ?>"></script>
<?php endforeach; ?>
<style type='text/css'>
body
{
font-family: Arial;
font-size: 14px;
}
a {
color: blue;
text-decoration: none;
font-size: 14px;
}
a:hover
{
text-decoration: underline;
}
</style>
</head>
<body>
<!-- Beginning header -->
<?php
if($extra == "")
{ ?>
<div>
<a href='<?php echo site_url('Login');?>'>Login</a>
</div>
<?php
} else { ?>
<div>
Welcome <?php echo $extra;?> |
<a href='<?php echo site_url('roll_c/logout');?>'>Logout</a>
</div>
<?php
} ?>
<h1>Period Rolls of Arms</h1>
<!-- End of header-->
<div style='height:20px;'></div>
<div>
<?php echo $output; ?>
</div>
<!-- Beginning footer -->
<div>Footer</div>
<!-- End of Footer -->
</body>
</html>