Added some debugging.
This commit is contained in:
@@ -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);
|
||||||
};
|
};
|
||||||
*/
|
*/
|
||||||
|
}
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user