|
@@ -7,8 +7,24 @@
|
|
|
<style type="text/css">
|
|
|
.table th{text-align: center;}
|
|
|
.table td{text-align: center;}
|
|
|
+ #soft{
|
|
|
+ width: 80px;
|
|
|
+ }
|
|
|
</style>
|
|
|
<script type="text/javascript">
|
|
|
+ //失焦修改排序值
|
|
|
+ function upSoft(infoAd){
|
|
|
+ var soft=$("#soft").val();
|
|
|
+ $.post("${ctx}/info/infoAd/update/soft",{'soft':soft,'InfoId':infoAd}, function(data) {
|
|
|
+ if(true==data.success){
|
|
|
+ setTimeout(function () {
|
|
|
+ $("#searchForm").submit();
|
|
|
+ },200)
|
|
|
+ } else {
|
|
|
+ $.jBox.tip(data.msg,'error');
|
|
|
+ }
|
|
|
+ },"JSON");//这里返回的类型有:json,html,xml,text
|
|
|
+ }
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
});
|
|
@@ -103,8 +119,8 @@
|
|
|
${infoAd.link}
|
|
|
</td>
|
|
|
<td>
|
|
|
-<%-- <input id="soft" value="${infoAd.soft}" maxlength="11">--%>
|
|
|
- ${infoAd.soft}
|
|
|
+ <input id="soft" type="number" value="${infoAd.soft}" maxlength="11" onblur="upSoft(${infoAd.id})">
|
|
|
+<%-- <input value="${infoAd.soft}"> --%>
|
|
|
</td>
|
|
|
<td>
|
|
|
${empty infoAd.clickRate?0:(infoAd.clickRate)}
|