Versions Compared

Key

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

...

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

    setTimeout(function(){
        $("#requestListAll > tbody > tr, #list_request > tbody > tr").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($("#requestListAll > tbody > tr, #list_request > tbody > tr").size() > 0){
            $("th.row_action").not(".footable-last-column").remove();
        }
        
    }, 1000);
    

}, false);
Code Block
titleSub Header
linenumberstrue
<li class="action-link action-link-modal dropdown" style="display: none; list-style: none; margin: 15px;">
    <a data-toggle="dropdown" class="btn dropdown-toggle waves-effect btn waves-button waves-float" aria-expanded="false">
	     Action
	     <span class="caret"></span>
    </a>
    <ul class="dropdown-menu">
        
    </ul>
</li>

...