Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on May 22, 2012
@vitorbaptista vitorbaptista Only accept images. 1624aef
Showing with 5 additions and 0 deletions.
  1. +5 −0 static/javascripts/picture-loader.js
View
5 static/javascripts/picture-loader.js
@@ -22,6 +22,11 @@ $(function() {
$('body').addClass($(this).val());
});
$('input#choose-picture').on("change", function (evt) {
+ if (!evt.target.files[0].type.match('image.*')) {
+ alert("Please, choose an image.");
+ return;
+ }
+
handleFileSelect(evt);
$('div.color-picker').show();
$('div.generate').show();

No commit comments for this range

Something went wrong with that request. Please try again.