Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Clistview Beforeajaxreplace Option

$
0
0
In CListView (CGridView maybe also) It would be useful to set a callback similar to afterAjaxUpdate, but called immediately BEFORE the replace.
Use cases: close popovers/tooltip immediately before replacing the dom objs.

E.g.

    
    $.fn.yiiListView.update = function(id, options) {
        ...
        success: function(data,status) {
            // callback here
            $.each(settings.ajaxUpdate, function(i,v) {
                ...
            });
            if(settings.afterAjaxUpdate != undefined)
                settings.afterAjaxUpdate(id, data);
            ...

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>