vali 6 жил өмнө
parent
commit
9fc3be1a77

+ 1 - 1
application/admin/controller/Kfnotice.php

@@ -108,7 +108,7 @@ class Kfnotice extends Base
     // 生成按钮
     private function makeBtn($id)
     {
-        $operate = '<a href="javascript:adminDel(' . $id . ')"><button type="button" class="btn btn-danger btn-sm">';
+        $operate = '<a href="javascript:Del(' . $id . ')"><button type="button" class="btn btn-danger btn-sm">';
         $operate .= '<i class="fa fa-trash-o"></i> 删除</button></a> ';
 
         return $operate;

+ 1 - 1
application/admin/view/kfnotice/index.html

@@ -106,7 +106,7 @@
         $("#search").bind("click", initTable);
     });
 
-    function adminDel(id) {
+    function Del(id) {
         layer.confirm('确认删除记录?', {icon: 3, title: '提示'}, function (index) {
             //do something
             $.getJSON("{:url('kfnotice/del')}", {'id': id}, function (res) {