|
|
|
|
@ -301,10 +301,14 @@
|
|
|
|
|
//render module if not rendered yet...
|
|
|
|
|
if(module == null)
|
|
|
|
|
{
|
|
|
|
|
$scope.$emit('onBeforeMainPanelChange', {mainPanel: $scope.divMainPanel, module: module});
|
|
|
|
|
|
|
|
|
|
$scope.renderModule('body #main-panel', subModule.Controller, (configs || null), true, function(className, scope){
|
|
|
|
|
|
|
|
|
|
$("body, html").animate({scrollTop : 0}, 0);
|
|
|
|
|
|
|
|
|
|
$scope.$emit('onAfterMainPanelChange', {mainPanel: $scope.divMainPanel, module: module});
|
|
|
|
|
|
|
|
|
|
//execute callback if available
|
|
|
|
|
if(callback != undefined)
|
|
|
|
|
{
|
|
|
|
|
@ -346,10 +350,32 @@
|
|
|
|
|
|
|
|
|
|
if(!isInMainPanel)
|
|
|
|
|
{
|
|
|
|
|
$scope.$emit('onBeforeMainPanelChange', {mainPanel: $scope.divMainPanel, module: module});
|
|
|
|
|
|
|
|
|
|
//add current module to main-panel if not there yet
|
|
|
|
|
module.domEl.appendTo($scope.divMainPanel);
|
|
|
|
|
|
|
|
|
|
$scope.$emit('onAfterMainPanelChange', {mainPanel: $scope.divMainPanel, module: module});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.$on('onBeforeMainPanelChange', function(event, args){
|
|
|
|
|
|
|
|
|
|
$rootScope.$broadcast('loadingStatusActive');
|
|
|
|
|
|
|
|
|
|
//$(args.mainPanel).hide();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$scope.$on('onAfterMainPanelChange', function(event, args){
|
|
|
|
|
|
|
|
|
|
$timeout(function () {
|
|
|
|
|
|
|
|
|
|
//$(args.mainPanel).fadeIn();
|
|
|
|
|
|
|
|
|
|
$rootScope.$broadcast('loadingStatusInactive');
|
|
|
|
|
|
|
|
|
|
}, 0);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$scope.getModule = function(className){
|
|
|
|
|
|
|
|
|
|
|