Добавлена сортировка доп. параметров

This commit is contained in:
Krivchikov Dmitry 2015-09-19 10:53:39 +03:00
parent 187dae5983
commit d84458ae13
3 changed files with 5 additions and 4 deletions

View File

@ -25,8 +25,7 @@
<label class="control-label error" for="imgs">(Что-то не так с изображениями!)</label>
<span class="btn btn-sm add button" onclick="addNewImage()" title="Добавить ещё одно изображение"><span class="glyphicon glyphicon-plus"></span> <span class="glyphicon glyphicon-camera"></span></span>
</div>
<div id="imgsContainer">
</div>
<div id="imgsContainer"></div>
<div class="form-group extraImage asLink">
<label class="control-label" for="imgs">Дополнительные поля</label>
<span class="btn btn-sm add button" onclick="addNewExtraParam()" title="Добавить ещё одно изображение"><span class="glyphicon glyphicon-plus"></span> <span class="glyphicon glyphicon-bookmark"></span></span>
@ -78,7 +77,8 @@
<div id="newExtraParam">
<div class="form-group extraParam" style="display: none;">
<div class="input-group">
<input type="text" name="extraParamNames[]" class="form-control names" placeholder="Название параметра (тел., сайт, ...)" />
<div class="input-group-addon type ico" title="Можно перетаскивать вверх и вних"><span class="glyphicon glyphicon-align-justify"></span></div>
<input type="text" name="extraParamNames[]" class="form-control names" placeholder="Имя параметра (тел., сайт, …)" />
<input type="text" name="extraParamValues[]" class="form-control values" placeholder="Значение параметра" />
<div class="input-group-addon remove button" onclick="removeInput($(this))" title="Удалить это поле"><span class="glyphicon glyphicon-trash"></span></div>
</div>

View File

@ -35,7 +35,7 @@ div.fotorama__caption div.fotorama__caption__wrap {padding: 0px 5px;}
#addPointModal .extraParam .button {cursor: pointer; background-color: #eeeeee;}
#addPointModal .extraParam .remove:hover {background-color: #f4bfbf;}
#addPointModal .extraParam .add:hover {background-color: #bff4c8;}
#addPointModal .extraParam .type.button:hover {background-color: #ddd;}
#addPointModal .extraParam .input-group-addon.type.ico:hover {background-color: #ddd;cursor: move;}
#addPointModal .extraParam .input-group-addon.type.button {border-left: 0px;}
#addPointModal .extraParam input.form-control {width: 50%}

View File

@ -107,6 +107,7 @@ function init(lat, lng) {
$("#wayPoints").sortable();
$("#wayPoints").disableSelection();
$("#imgsContainer").sortable();
$("#extraParamsContainer").sortable();
myMap.on('moveend', function (e) {
if (!myMap._popup && $('#boxRoute').css('display') == 'none' && status != statusMovingInHistory)