Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

render_delete_dialog_JS()

Parameters

ColumnTypeDefaultDescription
$all_users false

Location

include/dash_functions.php lines 1289 to 1310

Definition

 
function render_delete_dialog_JS($all_users=false)
    {
    global 
$baseurl$lang;
    
?>
    jQuery("#trash_bin_delete_dialog").dialog({
        title:' echo $lang["dashtiledelete"]; ?>',
        autoOpen: true,
        modal: true,
        resizable: false,
        dialogClass: 'delete-dialog no-close',
        buttons: {
            " echo $lang['confirmdashtiledelete'?>": function() {deleteDashTile(usertileid); jQuery(this).dialog( "close" );},
             if($all_users){
            
?>
            " echo $lang['confirmdefaultdashtiledelete'?>": function() {deleteDefaultDashTile(tileid,usertileid); jQuery(this).dialog( "close" );},
            " echo $lang['managedefaultdash'?>": function() {window.location = " echo $baseurl?>/pages/team/team_dash_tile.php"; return false;},
             ?>
            " echo $lang['cancel'?>":  function() { jQuery(this).dialog('close'); }
        }
    });
    
    
}

This article was last updated 30th November 2020 11:35 Europe/London time based on the source file dated 3rd November 2020 16:55 Europe/London time.