Branch: Tag:

1999-07-19

1999-07-19 22:03:59 by David Hedbor <david@hedbor.org>

Removed \n before and after javascript (it will add unwanted spaces)

Rev: server/modules/graphics/graphic_text.pike:1.185

1: - constant cvs_version="$Id: graphic_text.pike,v 1.184 1999/07/16 02:34:38 per Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.185 1999/07/19 22:03:59 neotron Exp $";   constant thread_safe=1;      #include <config.h>
721:   {    if(!id->supports->netscape_javascript || !id->supports->images) return "";    return -  ("\n<script>\n" +  ("<script>\n"    "function i(ri,hi,txt)\n"    "{\n"    " document.images[ri].src = hi.src;\n"    " setTimeout(\"top.window.status = '\"+txt+\"'\", 100);\n"    "}\n" -  "</script>\n"); +  "</script>");      }   
747:    ("<script>\n"    " "+sn+"l = new Image("+xs+", "+ys+");"+sn+"l.src = \""+image_1+"\";\n"    " "+sn+"h = new Image("+xs+", "+ys+");"+sn+"h.src = \""+image_2+"\";\n" -  "</script>\n"+ +  "</script>"+    ("<a "+extra_args+"href=\""+url+"\" "+    (input?"onClick='document.forms[0].submit();' ":"")    +"onMouseover=\"i('"+sn+"',"+sn+"h,'"+(mess||url)+"'); return true;\"\n"
1036:    (arg->alt?arg->alt:replace(gt, "\"","'")),    (magic=="magic"?0:magic),    id,input?na||"submit":0,ea,lp), -  "</script>\n<script>",""); +  "</script><script>","");    }    if(input)    return (pre+"<input type=image name=\""+na+"\" border=0 alt=\""+