From 9e953bc2d468d3e1c1ddbdfdb62339af6c624711 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Wed, 29 Jul 2009 05:35:32 -0400
Subject: [PATCH] - fix preloading images without defined source
---
program/js/app.js | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/program/js/app.js b/program/js/app.js
index a067926..9cd4231 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -134,7 +134,7 @@
this.goto_url('error', '_code=0x199');
return;
}
-
+
// find all registered gui containers
for (var n in this.gui_containers)
this.gui_containers[n] = $('#'+this.gui_containers[n]);
@@ -155,7 +155,7 @@
if (this.env.permaurl)
this.enable_command('permaurl', true);
-
+
switch (this.task)
{
case 'mail':
@@ -3370,7 +3370,6 @@
if (prop.type == 'image') {
elm = elm.parentNode;
preload = true;
- new Image().src = prop.sel;
}
elm._command = cmd;
--
Gitblit v1.9.1