forked from bofh/fetsite
FIX: downcase in JS
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
//= require jquery-fileupload
|
//= require jquery-fileupload
|
||||||
|
|
||||||
function insertAttachment(url,name) {
|
function insertAttachment(url,name) {
|
||||||
var ext = url.split('.').pop();
|
var ext = url.split('.').pop().toLowerCase();
|
||||||
var img_ext = [ "jpg", "png", "bmp" , "jpeg" ];
|
var img_ext = [ "jpg", "png", "bmp" , "jpeg" ];
|
||||||
|
|
||||||
if ( img_ext.indexOf(ext) > -1) {
|
if ( img_ext.indexOf(ext) > -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user