Toss for two days, DWZ deleted after the data can not automatically refresh, solution, directly look at the picture.
1, delete, modify the status after the record can not be refreshed;
Add the following code to the Dwz.min.js:
function Navtabajax (JSON) {
Navtabajaxdone (JSON);
Navtab.reload ();
}
function Dialogajax (JSON) {
Dialogajaxdone (JSON);
Navtab.reload ();
}
Bulk Delete:
Selectedtodo:function () {} Success:navtabajaxdone, Navtabajaxdone changed to "Navtabajax";
The deletion code on the page is as follows:
<a class= "Delete" href= "__url__/delete" target= "Ajaxtodo" callback= "Navtabajax" title= "Are you sure you want to delete it? "Warn=" Please select info ><span> Delete </span></a>
callback= "Navtabajax" callback function must use "Navtabajax";
Status Change code:
<td>{$vo [' status ']|showstatus= $vo [' id '], ' Navtabajax '}</td>
2, find back the problem;
In the Bringbacksuggest:function (args) method:
var $box =_lookup[' $target '].parents (". Unitbox:first") to
var $box =_lookup[' $target '].parents (": First");
Get Value on page:
<div class= "unit" >
<label> role:</label>
<input type= "hidden" name= "orglookup.id" value= "${orglookup.id}"/>
<input type= "text" name= "Orglookup.orgname" value= "" suggestfields= "OrgName"/>
<a class= "Btnlook" href= "__url__/searchrole" lookupgroup= "Orglookup" > Find Bring back </a>
</div>>
Value page:
<a class= "Btnselect" href= "Javascript:$.bringback ({id: ' {$vo [' id ']} ', OrgName: ' {$vo [' role_name ']} ', Orgnum: ' {$vo [' ID ']} ' }) "Title=" Find Back "> select </a>
Php_dwz-jui in the Problem solving method (THINKPHP+DWZ)