mirror of
https://github.com/moparisthebest/mailcatcher
synced 2024-10-31 15:35:07 -04:00
Merge branch 'avoid-hash-in-urls-by-preventing-default-link-action' of https://github.com/schmidt/mailcatcher
This commit is contained in:
commit
623f2b4514
@ -6,7 +6,8 @@ module MailCatcher
|
||||
end
|
||||
|
||||
def notify message
|
||||
system "growlnotify", "--name", "MailCatcher", "--message", "Message received:\n#{message["subject"]}"
|
||||
image_path = File.expand_path(File.join(__FILE__, '..', '..', '..', 'public', 'images', 'logo_large.png'))
|
||||
system "growlnotify", "--image", image_path, "--name", "MailCatcher", "--message", "Message received:\n#{message["subject"]}"
|
||||
end
|
||||
|
||||
# TODO: Native support on MacRuby with click backs
|
||||
|
BIN
public/images/logo_large.png
Normal file
BIN
public/images/logo_large.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
@ -25,6 +25,7 @@ class MailCatcher
|
||||
height: e.clientY - $('#messages').offset().top
|
||||
|
||||
$('nav.app .clear a').live 'click', (e) =>
|
||||
e.preventDefault()
|
||||
if confirm "You will lose all your received messages.\n\nAre you sure you want to clear all messages?"
|
||||
$.ajax
|
||||
url: '/messages'
|
||||
@ -37,6 +38,7 @@ class MailCatcher
|
||||
alert 'Error while quitting.'
|
||||
|
||||
$('nav.app .quit a').live 'click', (e) =>
|
||||
e.preventDefault()
|
||||
if confirm "You will lose all your received messages.\n\nAre you sure you want to quit?"
|
||||
$.ajax
|
||||
type: 'DELETE'
|
||||
|
@ -34,6 +34,7 @@
|
||||
}
|
||||
});
|
||||
$('nav.app .clear a').live('click', __bind(function(e) {
|
||||
e.preventDefault();
|
||||
if (confirm("You will lose all your received messages.\n\nAre you sure you want to clear all messages?")) {
|
||||
return $.ajax({
|
||||
url: '/messages',
|
||||
@ -50,6 +51,7 @@
|
||||
}
|
||||
}, this));
|
||||
$('nav.app .quit a').live('click', __bind(function(e) {
|
||||
e.preventDefault();
|
||||
if (confirm("You will lose all your received messages.\n\nAre you sure you want to quit?")) {
|
||||
return $.ajax({
|
||||
type: 'DELETE',
|
||||
|
Loading…
Reference in New Issue
Block a user