echo plugin_script('fastclick/fastclick.min.js'); ?> <!-- AdminLTE App --> <?php echo script('app.min.js'); ?> <!-- Page level plugins --> <?php if (!empty($plugin_scripts)) { ?> <?php foreach ($plugin_scripts as $script) { ?> <?php echo plugin_script($script); ?> <?php } ?> <?php } ?> <!-- Page level scripts --> <?php if (!empty($page_scripts)) { ?> <?php foreach ($page_scripts as $script) { ?>
</div> <button type="submit" class="btn btn-success btn-block btn-flat">Log in</button> </form> <hr/> <a href="#" class="text-center">I forgot my password</a><br> </div><!-- /.login-box-body --> </div><!-- /.login-box --> <!-- jQuery 2.1.4 --> <?php echo plugin_script('jQuery/jQuery-2.1.4.min.js'); ?> <!-- Bootstrap 3.3.5 --> <?php echo plugin_script('bootstrap/js/bootstrap.min.js'); ?> <script type="text/javascript"> (function($){ $(document).ready(function(){ $('form').submit(function(e){ e.preventDefault(); var that = $(this); var messageBox = $('.alert.alert-danger'); $('[type=submit]').attr('disabled', 'disabled'); $.post(that.data('action'), that.serialize()) .done(function(response){ if(response.result){ window.location.href = '<?php echo base_url('home');