function updateBurndownLink(){
    // Add the link for Burndown Charts
    //$('.s4tLink').remove();
    if($('.s4tLink').length === 0){
		var buttons = "";

		// Link for Burndown Charts
		var linkSetting = S4T_SETTINGS[SETTING_NAME_LINK_STYLE];
		if(linkSetting !== 'none'){
			buttons += "<a id='burndownLink' class='s4tLink quiet ed board-header-btn dark-hover' href='#'>";
			buttons += "<span class='icon-sm board-header-btn-icon'><img src='"+flameUrl+"' width='12' height='12'/></span>";
			if(linkSetting !== 'icon'){
				buttons += "<span class='text board-header-btn-text'>Burndown Chart</span>";
			}
			buttons += "</a>";
		}
		// Link for settings
		buttons += "<a id='scrumSettingsLink' class='s4tLink quiet ed board-header-btn dark-hover' href='#'>";
		buttons += "<span class='icon-sm board-header-btn-icon'><img src='"+scrumLogoUrl+"' width='12' height='12' title='Settings: Scrum for Trello'/></span>";
		//buttons += "<span class='text board-header-btn-text'>Settings</span>"; // too big :-/ icon only for now
		buttons += "</a>";
		var showOnLeft = true;
		if(showOnLeft){
			$('.board-header-btns.mod-left').last().after(buttons);
		} else {
			$('.board-header-btns.mod-right,#board-header a').last().after(buttons);
		}
        $('#burndownLink').click(showBurndown);
		$('#scrumSettingsLink').click(showSettings);
    }
}
// Refreshes the link to the Burndown Chart dialog.
Refreshes the link to the Burndown Chart dialog.
Refreshes the link to the Burndown Chart dialog .
function updateBurndownLink(){
    if($('.s4tLink').length === 0){
		var buttons = "";
		var linkSetting = S4T_SETTINGS[SETTING_NAME_LINK_STYLE];
		if(linkSetting !== 'none'){
			buttons += "<a id='burndownLink' class='s4tLink quiet ed board-header-btn dark-hover' href='#'>";
			buttons += "<span class='icon-sm board-header-btn-icon'><img src='"+flameUrl+"' width='12' height='12'/></span>";
			if(linkSetting !== 'icon'){
				buttons += "<span class='text board-header-btn-text'>Burndown Chart</span>";
			}
			buttons += "</a>";
		}
		buttons += "<a id='scrumSettingsLink' class='s4tLink quiet ed board-header-btn dark-hover' href='#'>";
		buttons += "<span class='icon-sm board-header-btn-icon'><img src='"+scrumLogoUrl+"' width='12' height='12' title='Settings: Scrum for Trello'/></span>";
		buttons += "</a>";
		var showOnLeft = true;
		if(showOnLeft){
			$('.board-header-btns.mod-left').last().after(buttons);
		} else {
			$('.board-header-btns.mod-right,#board-header a').last().after(buttons);
		}
        $('#burndownLink').click(showBurndown);
		$('#scrumSettingsLink').click(showSettings);
    }
}
function updateBurndownLink ( ) { if ( $ ( '.s4tLink' ) . length === 0 ) { var buttons = "" ; var linkSetting = S4T_SETTINGS [ SETTING_NAME_LINK_STYLE ] ; if ( linkSetting !== 'none' ) { buttons += "<a id='burndownLink' class='s4tLink quiet ed board-header-btn dark-hover' href='#'>" ; buttons += "<span class='icon-sm board-header-btn-icon'><img src='" + flameUrl + "' width='12' height='12'/></span>" ; if ( linkSetting !== 'icon' ) { buttons += "<span class='text board-header-btn-text'>Burndown Chart</span>" ; } buttons += "</a>" ; } buttons += "<a id='scrumSettingsLink' class='s4tLink quiet ed board-header-btn dark-hover' href='#'>" ; buttons += "<span class='icon-sm board-header-btn-icon'><img src='" + scrumLogoUrl + "' width='12' height='12' title='Settings: Scrum for Trello'/></span>" ; buttons += "</a>" ; var showOnLeft = true ; if ( showOnLeft ) { $ ( '.board-header-btns.mod-left' ) . last ( ) . after ( buttons ) ; } else { $ ( '.board-header-btns.mod-right,#board-header a' ) . last ( ) . after ( buttons ) ; } $ ( '#burndownLink' ) . click ( showBurndown ) ; $ ( '#scrumSettingsLink' ) . click ( showSettings ) ; } }
Refreshes the link to the Burndown Chart dialog.
Refreshes the link to the Burndown Chart dialog .
// Add the link for Burndown Charts //$('.s4tLink').remove(); // Link for Burndown Charts // Link for settings //buttons += "<span class='text board-header-btn-text'>Settings</span>"; // too big :-/ icon only for now