Когда я открываю модал со страницы, он открывается совершенно нормально, но когда я пытаюсь открыть тот же модал той же кнопкой из другого модала (открытого на той же странице), он отказывается показываться. В чем может быть проблема?
РЕДАКТИРОВАТЬ: мой, плохо, я забыл отправить код.
Это ужасный дизайн, но вот как выглядит модальное диалоговое окно:
<div id="modalEditArticle" class="container modal fade" role="dialog" style="margin-top: 10%">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="row vertical-offset-100">
<div class="col-sm-6 col-sm-offset-3">
<div class="alert alert-danger" id = "errorMessage" style="display: none"></div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Edit article</h3>
</div>
<div class="panel-body">
<form id="editArticleForm" method="PUT" action="/article/edit" class="form-horizontal col-sm-10 col-sm-offset-1" role="form">
<fieldset>
<div class="form-group">
<label>Article name:</label>
<input class="form-control" placeholder="Enter article name" id="name" name="name" type="text" readonly="readonly">
</div>
<div class="form-group">
<label>Unit price:</label>
<input class="form-control" placeholder="Enter unit price" id="unitPrice" name="unitPrice" type="text" >
</div>
<div class="form-group">
<label>Description:</label>
<input class="form-control" placeholder="Enter description" id="description" name="description" type="text" >
</div>
<div class="form-group">
<input id="id" name="id" type="text" style="display: none">
</div>
<!-- Select Basic -->
<label>Choose article type:</label>
<div class="form-group">
<select id="articleType" name="articleType" class="form-control">
<option value="Drink" >Drink</option>
<option value="Food">Food</option>
</select>
</div>
<div class="form-group">
<label>Amount (in grams for Food, in milliliters for Drink):</label>
<input class="form-control" placeholder="Enter amount (in grams for Food,in milliliters for Drink)" id="amount" name="amount" type="text" >
</div>
<!-- Select Basic -->
<div class="form-group">
<label>Choose restaurant where it will be served:</label>
<select id="restaurantId" name="restaurantId" class="form-control restaurantId">
</select>
</div>
</div>
<input class="btn btn-lg btn-success btn-block" type="submit" value="Update article">
<button type="button" class="btn btn-lg btn-danger btn-block" data-dismiss="modal">Cancel</button>
</fieldset>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
А вот кнопка, запускающая ее (только что взятая из другого куска кода):
<button type="button" id="editArticleButton" class="btn btn-info btn-block" data-toggle="modal" data-target="#modalEditArticle"><span class="glyphicon glyphicon-edit"></span> Edit </button>