Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

render_delete_dialog_JS()

Parameters

ColumnTypeDefaultDescription
$all_users false

Location

include/dash_functions.php lines 1356 to 1377

Definition

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

This article was last updated 29th May 2024 17:05 Europe/London time based on the source file dated 22nd May 2024 00:00 Europe/London time.