Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Place these codes in Userview Builder > Settings. (Note that the following codes are for Joget DX Progressive Theme. If you are using Joget DX X-Admin Theme, go to here)

Code Block
titleCustom Javascript
linenumberstrue
window.addEventListener('load', function () {

    setTimeout(function(){
        $("tbody:visible > tr:visible").each(function(){
            actionLink = $("li.action-link-modal").clone();
        
            if($(this).find("td.row_action a").size() > 0){
                $(this).find("td.row_action a").each(function(){
                    $(actionLink).find("ul").append( "<li>" + $(this).prop("outerHTML") + "</li>");
                });
                $(this).find(".footable-last-column").append( actionLink );
                $(actionLink).removeClass("action-link-modal").show();
                $(this).find("td.row_action").not(".footable-last-column").remove();
                $(this).find(".footable-last-column .row_action_inner").remove();
            }
        });
        
        if($("tbody:visible > tr:visible").size() > 0){
            $("th.row_action").not(".footable-last-column").remove();
        }
        
    }, 1000);
    

}, false);

...