Commit cbc64038 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

Show message content if no subject and is done

parent c574aaec
......@@ -502,12 +502,14 @@ sub _send_message {
$self->_remove_unnecessary_messages() if $self->status eq 'done';
my $subject = $self->command." $domain_name ".$self->status;
$subject = $message if $message && $self->status eq 'done';
my $sth = $$CONNECTOR->dbh->prepare(
"INSERT INTO messages ( id_user, id_request, subject, message, date_shown ) "
." VALUES ( ?,?,?,?, NULL)"
);
$sth->execute($uid, $self->id,$self->command." $domain_name".$self->status
,$message);
$sth->execute($uid, $self->id,$subject, $message);
$sth->finish;
}
......
......@@ -57,7 +57,8 @@
ng-class="'alert-' + (alert.type || 'warning')"
ng-click="closeAlert($index)"
ng-mouseover="alert.showMessage = false"
ng-mouseleave="alert.showMessage = true">
ng-mouseleave="alert.showMessage = true"
ng-bind-html="alert.subject">
{{alert.subject}}
<div ng-if="alert.message" ng-init="alert.showMessage = true" ng-hide="alert.showMessage" ng-bind-html="alert.message">
{{alert.message}}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment