代码拉取完成,页面将自动刷新
同步操作将从 xknaan/Bootstrap_for_DWZ 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<script type="text/javascript">
function IMG_saveOrder_() {
$('#j_image_box', navTab.getCurrentPanel()).find('.image-seq').each(function(i) {
var $this = $(this);
$this.val((i + 1));
});
$('#j_image_select1').find('.image-seq').each(function(i) {
var $this = $(this);
$this.val((i + 1));
});
$('#j_image_select2').find('.image-seq').each(function(i) {
var $this = $(this);
$this.val((i + 1));
});
}
</script>
<style type="text/css">
.image-thumb-box {float: left; padding: 5px; margin-right: 5px; width: 150px; border: 1px #EEE solid; border-radius: 4px;}
.image-thumb-box img {width: 140px; height: 79px;}
.image-thumb-box:hover {background: #EEE;}
.image-thumb-box .thumbnail {margin-bottom: 8px;}
.image-thumb-box .form-control {width: 100%;}
.image-thumb-box .form-group,
.image-thumb-box .form-control {margin-bottom: 1px;}
.img-placeHolder {float: left; width: 150px; background-color:white !important; border:dashed 1px gray !important; }
</style>
<div class="pageContent">
<form action="ajaxDone1.html" id="j_image_form" class="pageForm form-validate" method="post" callback="navTabAjaxDone" noEnter>
<div class="pageFormContent" layouth="29">
<div class="clearfix" style="margin: 20px auto 0;">
<div id="j_dragsort_placeholder" style="display: none;"><div class="img-placeHolder"></div></div>
<div class="j-dragsort clearfix" id="j_image_box" data-selector="div.image-thumb-box" data-placeholder="#j_dragsort_placeholder" data-exclude=".input-group, input, textarea" data-dragend="IMG_saveOrder_" data-scrollcontainer=".pageFormContent" data-between="true" data-otherbox="#j_image_select1, #j_image_select2">
<div class="image-thumb-box">
<a href="#" class="thumbnail"><img src="images/001.jpg"></a>
<div class="input-group">
<span class="input-group-addon">顺序</span>
<input type="text" name="seq" class="form-control image-seq" placeholder="顺序" value="1">
</div>
<input type="text" name="title" class="form-control" value="" placeholder="葫芦娃">
<textarea name="note" rows="1" cols="" class="form-control autosize" placeholder="描述"></textarea>
</div>
<div class="image-thumb-box">
<a href="#" class="thumbnail"><img src="images/002.jpg"></a>
<div class="input-group">
<span class="input-group-addon">顺序</span>
<input type="text" name="seq" class="form-control image-seq" placeholder="顺序" value="2">
</div>
<input type="text" name="title" class="form-control" value="" placeholder="绿灯侠">
<textarea name="note" rows="1" cols="" class="form-control autosize" placeholder="描述"></textarea>
</div>
<div class="image-thumb-box">
<a href="#" class="thumbnail"><img src="images/003.jpg"></a>
<div class="input-group">
<span class="input-group-addon">顺序</span>
<input type="text" name="seq" class="form-control image-seq" placeholder="顺序" value="3">
</div>
<input type="text" name="title" class="form-control" value="" placeholder="冰雪奇缘">
<textarea name="note" rows="1" cols="" class="form-control autosize" placeholder="描述"></textarea>
</div>
<div class="image-thumb-box">
<a href="#" class="thumbnail"><img src="images/004.jpg"></a>
<div class="input-group">
<span class="input-group-addon">顺序</span>
<input type="text" name="seq" class="form-control image-seq" placeholder="顺序" value="4">
</div>
<input type="text" name="title" class="form-control" value="" placeholder="机器人瓦力">
<textarea name="note" rows="1" cols="" class="form-control autosize" placeholder="描述"></textarea>
</div>
<div class="image-thumb-box">
<a href="#" class="thumbnail"><img src="images/005.jpg"></a>
<div class="input-group">
<span class="input-group-addon">顺序</span>
<input type="text" name="seq" class="form-control image-seq" placeholder="顺序" value="5">
</div>
<input type="text" name="title" class="form-control" value="" placeholder="小黄人">
<textarea name="note" rows="1" cols="" class="form-control autosize" placeholder="描述"></textarea>
</div>
</div>
<div style="float: left; width: 49%;">
<fieldset>
<legend>我准备选择的图片1 [尝试将上面的图片拖下来]</legend>
<div id="j_image_select1" style="height: 150px;">
</div>
</fieldset>
</div>
<div style="float: right; width: 49%;">
<fieldset>
<legend>我准备选择的图片2 [尝试将上面的图片拖下来]</legend>
<div id="j_image_select2" style="height: 150px;">
</div>
</fieldset>
</div>
</div>
<br>
<p>只需要将<strong class="red">第一个</strong>要拖动的容器 添加Class [<span class="red">j-dragsort</span>] ,添加属性 [<span class="red">data-between="true"</span>], 再将需要互相拖动的其他容器[选择器]添加到属性" [<span class="red">data-otherbox</span>] "中 即可激活多个容器间的拖动效果。例子代码如下:</p>
<pre><div id="j_dragsort_placeholder" style="display: none;"><div class="img-placeHolder"></div></div>
<div class="j-dragsort clearfix" id="j_image_box" data-selector="div.image-thumb-box" data-placeholder="#j_dragsort_placeholder" data-exclude=".input-group, input, textarea" data-dragend="IMG_saveOrder" data-scrollcontainer=".pageFormContent" data-between="true" data-otherbox="#j_image_select1, #j_image_select2">
<div class="image-thumb-box">
<a href="#" class="thumbnail"><img src="images/001.jpg"></a>
<div class="input-group">
<span class="input-group-addon">顺序</span>
<input type="text" name="seq" class="form-control image-seq" placeholder="顺序" value="1">
</div>
<input type="text" name="title" class="form-control" value="" size="11" placeholder="葫芦娃">
<textarea name="note" rows="1" cols="" class="form-control autosize" placeholder="描述"></textarea>
</div>
<div class="image-thumb-box">
<a href="#" class="thumbnail"><img src="images/002.jpg"></a>
<div class="input-group">
<span class="input-group-addon">顺序</span>
<input type="text" name="seq" class="form-control image-seq" placeholder="顺序" value="2">
</div>
<input type="text" name="title" class="form-control" value="" size="11" placeholder="绿灯侠">
<textarea name="note" rows="1" cols="" class="form-control autosize" placeholder="描述"></textarea>
</div>
<div class="image-thumb-box">
<a href="#" class="thumbnail"><img src="images/003.jpg"></a>
<div class="input-group">
<span class="input-group-addon">顺序</span>
<input type="text" name="seq" class="form-control image-seq" placeholder="顺序" value="3">
</div>
<input type="text" name="title" class="form-control" value="" size="11" placeholder="冰雪奇缘">
<textarea name="note" rows="1" cols="" class="form-control autosize" placeholder="描述"></textarea>
</div>
<div class="image-thumb-box">
<a href="#" class="thumbnail"><img src="images/004.jpg"></a>
<div class="input-group">
<span class="input-group-addon">顺序</span>
<input type="text" name="seq" class="form-control image-seq" placeholder="顺序" value="4">
</div>
<input type="text" name="title" class="form-control" value="" size="11" placeholder="机器人瓦力">
<textarea name="note" rows="1" cols="" class="form-control autosize" placeholder="描述"></textarea>
</div>
<div class="image-thumb-box">
<a href="#" class="thumbnail"><img src="images/005.jpg"></a>
<div class="input-group">
<span class="input-group-addon">顺序</span>
<input type="text" name="seq" class="form-control image-seq" placeholder="顺序" value="5">
</div>
<input type="text" name="title" class="form-control" value="" size="11" placeholder="小黄人">
<textarea name="note" rows="1" cols="" class="form-control autosize" placeholder="描述"></textarea>
</div>
</div>
<div style="float: left; width: 49%;">
<fieldset>
<legend>我准备选择的图片1 [尝试将上面的图片拖下来]</legend>
<div id="j_image_select1" style="height: 150px;">
</div>
</fieldset>
</div>
<div style="float: right; width: 49%;">
<fieldset>
<legend>我准备选择的图片2 [尝试将上面的图片拖下来]</legend>
<div id="j_image_select2" style="height: 150px;">
</div>
</fieldset>
</div></pre>
<br>
<p>* 更多参数请参见:<a href="http://dragsort.codeplex.com/" target="_blank">http://dragsort.codeplex.com/</a></p>
</div>
<div class="formBar">
<ul>
<li><button type="button" class="btn btn-close btn-sm">关闭</button></li>
</ul>
</div>
</form>
</div>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。