Created
December 30, 2015 12:18
-
-
Save bjoerntx/a4b76dcfc721e33044e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function switchBackstageView(view) { | |
$('#menu li a').each(function () { | |
$(this).removeClass("active"); | |
}); | |
// add the title | |
$("#title").html("<h1>" + view + "</h1>"); | |
$("#" + view).addClass("active"); | |
// load the partial view dynamically | |
$("#stage").load("/home/getview", { viewName: view }); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment