Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions assets/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce, $timeout) {

$scope.startEvent = function(name, args, glyphicon) {
var eID = guid();
//console.log("Starting event '" + name + "' with id '" + eID + "'")
var e = {
id: eID,
name: name,
Expand All @@ -235,10 +234,7 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce, $timeout) {
var e = this;
e.complete = true;
$scope.eventDone++;
if(this.failed) {
// console.log("Failed event '" + e.name + "' with id '" + eID + "'")
} else {
// console.log("Completed event '" + e.name + "' with id '" + eID + "'")
if(!this.failed) {
$timeout(function() {
e.remove();
}, 10000);
Expand All @@ -250,7 +246,6 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce, $timeout) {
this.done();
},
remove: function() {
// console.log("Deleted event '" + e.name + "' with id '" + eID + "'")
if(e.failed) {
$scope.eventFailed--;
}
Expand Down Expand Up @@ -367,7 +362,6 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce, $timeout) {
}
}
}
console.log(data.$cidMap)
// TODO
// - scan HTML parts for elements containing CID URI and replace

Expand Down Expand Up @@ -504,7 +498,6 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce, $timeout) {
return false;
}
$scope.getMessageHTML = function(message) {
console.log(message);
for(var header in message.Content.Headers) {
if(header.toLowerCase() == 'content-type') {
if(message.Content.Headers[header][0].match("text/html")) {
Expand Down