Added some debugging.

This commit is contained in:
Wynne Crisman
2016-05-06 18:13:10 -07:00
parent 56cafcc968
commit b18604ab08

View File

@@ -8,6 +8,16 @@ window.status="";
//Handle the document ready event which is where any initialization code goes. //Handle the document ready event which is where any initialization code goes.
$(document).ready(function($) { $(document).ready(function($) {
var content = $('#content');
var viewName = "main-view";
var view = $('[bs-view="' + viewName + '"]');
if(!content || content.length != 1) {
throw "Content div not found";
}
else if(!view || view.length != 1) {
throw "View with name: '" + viewName + "' not found";
}
else {
var layoutManager = new LayoutManager("main-view"); var layoutManager = new LayoutManager("main-view");
//layoutManager.defaultUrl = '#!/holidays'; //layoutManager.defaultUrl = '#!/holidays';
@@ -44,5 +54,5 @@ $(document).ready(function($) {
console.log('Server: ' + message); console.log('Server: ' + message);
}; };
*/ */
}
}); });