|
@@ -58,6 +58,22 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
url:'topicdongtai/toptime/id/{ids}?dialog=1',
|
|
|
target:'_self',
|
|
|
refresh:true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name:'untoptime',
|
|
|
+ text:'取消置顶',
|
|
|
+ title:'取消置顶',
|
|
|
+ icon:'fa fa-exclamation-circle',
|
|
|
+ classname:'btn btn-xs btn-info btn-ajax',
|
|
|
+ url:'topicdongtai/untoptime/id/{ids}?dialog=1',
|
|
|
+ target:'_self',
|
|
|
+ hidden:function(row){
|
|
|
+ if(row.toptime > 0){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ },
|
|
|
+ refresh:true,
|
|
|
}
|
|
|
],
|
|
|
events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
@@ -71,6 +87,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
toptime: function () {
|
|
|
Controller.api.bindevent();
|
|
|
},
|
|
|
+ untoptime: function () {
|
|
|
+ Controller.api.bindevent();
|
|
|
+ },
|
|
|
add: function () {
|
|
|
Controller.api.bindevent();
|
|
|
},
|