diff --git a/js/plugins.js b/js/plugins.js index 8f4d48b..7a09437 100644 --- a/js/plugins.js +++ b/js/plugins.js @@ -105,6 +105,9 @@ // Dispatch the event window.dispatchEvent(event); } + else{ + alert('C\'mon, smile silly!'); + } } @@ -181,12 +184,11 @@ }, false); startbutton.addEventListener('click', function(ev){ - takepicture(); - ev.preventDefault(); + takepicture(); + ev.preventDefault(); }, false); clearphoto(); - alert('C\'mon, smile silly!'); } // Fill the photo with an indication that none has been