Open nekulin opened 9 years ago
File Editable.php
//wrap in anonymous function for live update
if($this->liveTarget) {
$script .= "\n $('body').on('ajaxUpdate.editable', function(e){
if(e.target.id == '".$this->liveTarget."') yiiEditable();
// ajax
var grid_id = $('div.grid-view').attr('id');
$(grid_id).yiiGridView.settings[grid_id].afterAjaxUpdate = function(id, data){ yiiEditable(); };
});";
$script = "(function yiiEditable() {\n ".$script."\n}());";
}
I regret widget Yong works with Ajax you have to do
Is it possible to solve this problem globally and beautiful ?