Fix on creating a new status

You were unable to create a new status because the page would reload itself when the modal appeared.

The problem was that the button was triggering the post's form. Adding type="button" to the button class, it will not.
merge-requests/17/head
Santiago 8 years ago
parent 38dd4ee7c9
commit 915d434d9c

@ -104,13 +104,13 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
<h4> <h4>
<?php echo $hesklang['statuses']; ?> <?php echo $hesklang['statuses']; ?>
<span class="nu-floatRight panel-button"> <span class="nu-floatRight panel-button">
<button class="btn btn-success" data-toggle="modal" data-target="#modal-status-new"> <button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal-status-new">
<i class="fa fa-plus-circle"></i> <i class="fa fa-plus-circle"></i>
<?php <?php
echo $hesklang['new_status']; echo $hesklang['new_status'];
?> ?>
</button> </button>
</span> </span>
</h4> </h4>
</div> </div>
<table class="table table-hover"> <table class="table table-hover">

Loading…
Cancel
Save