|
|
|
@ -391,7 +391,7 @@
|
|
|
|
$('body').modalmanager('removeLoading');
|
|
|
|
$('body').modalmanager('removeLoading');
|
|
|
|
|
|
|
|
|
|
|
|
//this on restores the body scrollbar
|
|
|
|
//this on restores the body scrollbar
|
|
|
|
$('body').removeClass('modal-open');
|
|
|
|
//$('body').removeClass('modal-open');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
|
|
|
|
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
|
|
|
|
@ -407,20 +407,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
$rootScope.$on('response', function(event, args){
|
|
|
|
$rootScope.$on('response', function(event, args){
|
|
|
|
|
|
|
|
|
|
|
|
//var response = args.response.response.ServerResponse;
|
|
|
|
var response = args.response;
|
|
|
|
|
|
|
|
|
|
|
|
//if(response != undefined && response != null && response.length > 0)
|
|
|
|
if(response != undefined && response != null && response.messages.length > 0)
|
|
|
|
//{
|
|
|
|
{
|
|
|
|
// $scope.ServerResponse = response;
|
|
|
|
$scope.ServerResponse = response;
|
|
|
|
|
|
|
|
|
|
|
|
// $scope.FirstMessage = response[0];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// $scope.FirstMessage.MessageType = globals.utils.getMessageTypeCSS($scope.FirstMessage.MessageType);
|
|
|
|
$scope.FirstMessage = response.messages[0];
|
|
|
|
|
|
|
|
|
|
|
|
// $scope.MessageCount = response.length;
|
|
|
|
$scope.FirstMessage.type = globals.utils.getMessageTypeCSS($scope.FirstMessage.type);
|
|
|
|
|
|
|
|
|
|
|
|
// //TODO: etc...
|
|
|
|
$scope.MessageCount = response.messages.length;
|
|
|
|
//}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if($scope.notification != null)
|
|
|
|
if($scope.notification != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -429,10 +427,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
$scope.notification = noty({
|
|
|
|
$scope.notification = noty({
|
|
|
|
layout: 'topRight',
|
|
|
|
layout: 'topRight',
|
|
|
|
text: 'your message goes here',
|
|
|
|
text: $scope.FirstMessage.messageData,
|
|
|
|
maxVisible: 1,
|
|
|
|
maxVisible: 1,
|
|
|
|
template:
|
|
|
|
template:
|
|
|
|
'<div ng-click="viewServerResponse()" class="bg-' + 'success' + ' noty_message">' +
|
|
|
|
'<div ng-click="viewServerResponse()" class="bg-' + $scope.FirstMessage.type + ' noty_message">' +
|
|
|
|
'<span ng-show="MessageCount > 1" class="label label-default pull-left noty-label">+{{MessageCount-1}}</span>' +
|
|
|
|
'<span ng-show="MessageCount > 1" class="label label-default pull-left noty-label">+{{MessageCount-1}}</span>' +
|
|
|
|
'<span class="noty_text"></span>' +
|
|
|
|
'<span class="noty_text"></span>' +
|
|
|
|
'<div class="noty_close"></div>' +
|
|
|
|
'<div class="noty_close"></div>' +
|
|
|
|
@ -450,6 +448,20 @@
|
|
|
|
$compile($scope.notification.$bar[0])($scope);
|
|
|
|
$compile($scope.notification.$bar[0])($scope);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$scope.viewServerResponse = function(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($scope.notification != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$scope.notification.close();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//TODO: show all messages modal window ?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//$scope.windowViewServerResponse.show();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//$scope.windowViewServerResponse.viewController.list($scope.ServerResponse);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
|
|
|
|
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
|
|
|
|
|
|
|
|
|
|
|
|
//fires whenever a new module is rendered, if broadcastCreation is true on method renderModule
|
|
|
|
//fires whenever a new module is rendered, if broadcastCreation is true on method renderModule
|
|
|
|
|