summaryrefslogtreecommitdiff
path: root/static/js/pichat.js
diff options
context:
space:
mode:
authorsostler <sbostler@gmail.com>2010-05-20 16:03:12 -0400
committersostler <sbostler@gmail.com>2010-05-20 16:03:12 -0400
commit4e58d4824e3369cecbcc4ae6054d2f6df2c50cb1 (patch)
treed52d402b7bd4914baf4ce9d58bc24f9f00fb8a25 /static/js/pichat.js
parent984b04cdd4748c88086e1d1ca0b060e1eaebb2a6 (diff)
Removed away.js and cookie.js, added svg support
Diffstat (limited to 'static/js/pichat.js')
-rw-r--r--static/js/pichat.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js
index a7caadc..b212fbd 100644
--- a/static/js/pichat.js
+++ b/static/js/pichat.js
@@ -51,7 +51,7 @@ function escapeHtml(txt) {
}
URLRegex = /((\b(http\:\/\/|https\:\/\/|ftp\:\/\/)|(www\.))+(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi;
-PicRegex = /\.(jpg|jpeg|png|gif|bmp)$/i;
+PicRegex = /\.(jpg|jpeg|png|gif|bmp|svg)$/i;
function getImagesAsArray(text) {
var imgs = []
@@ -632,7 +632,7 @@ function paletteToggle(){
function setupUpload(elementId, roomKey) {
var onSubmit = function(file, ext) {
- if (!(ext && /^(jpg|png|jpeg|gif|bmp)$/i.test(ext))) {
+ if (!(ext && /^(jpg|png|jpeg|gif|bmp|svg)$/i.test(ext))) {
alert('SORRY, NOT AN IMAGE DUDE... ');
return false;
}