Upon clicking the button labeled id=cancel
, the user will be directed to index.php.
$('#cancel').click(function() {
if(changes > 0){
$('#dialog-confirm').dialog('open');
}else{
window.location.href = "../index.php/";
}
});
An issue I am encountering is that after redirection, only the unstyled version of index.php is displayed. When inspecting the style.css link using Firebug, it shows just index.php. Why would the browser interpret index.php as the stylesheet? This anomaly occurs across different browsers such as FF, Chrome, and Safari.