From 4bd91f99b8abf92c930df4192ddfd0ce97b8b567 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 7 Nov 2003 07:59:23 +0000 Subject: [PATCH] Fixes to include ALT tags in smilies - by Janne Mikkonen --- lib/editor/popups/dlg_ins_smile.php | 54 ++++++++++++++--------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/lib/editor/popups/dlg_ins_smile.php b/lib/editor/popups/dlg_ins_smile.php index b3fc6ab69a..45f4147dba 100644 --- a/lib/editor/popups/dlg_ins_smile.php +++ b/lib/editor/popups/dlg_ins_smile.php @@ -65,17 +65,17 @@ function attr(name, value) { if (!value || value == "") return ""; return ' ' + name + '="' + value + '"'; } -function insert(img) { +function insert(img,text) { if (img) { var src = img; + var alt = text; } // pass data back to the calling window - var fields = ["f_url"]; + var fields = ["f_url","f_alt"]; var param = new Object(); - for (var i in fields) { - var id = fields[i]; - param[id] = src; - } + param['f_url'] = src; + param['f_alt'] = alt; + __dlg_close(param); return false; }; @@ -96,52 +96,52 @@ function cancel() { - + - + - + - + - + - + - + - + - + - + @@ -150,52 +150,52 @@ function cancel() {
smile :-)
big grin :-D
wink ;-)
border="0" mixed :-/
thoughtful V-.
tongue out :-P
cool B-)
approve ^-)
wide eyes 8-)
surprise 8-o
- + - + - + - + - + - + - + - + - + - + @@ -211,4 +211,4 @@ function cancel() {
sad :-(
shy 8-.
blush :-I
kisses :-X
clown :o)
black eye P-|
angry 8-[
dead xx-P
sleepy |-.
evil }-]
- + \ No newline at end of file -- 2.39.5