Branch: Tag:

1997-10-16

1997-10-16 23:46:06 by Johan Schön <js@opera.com>

Kludge for MbimuHIE3, netscape_javascript instead of javascript in supports check

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

1: - constant cvs_version="$Id: graphic_text.pike,v 1.88 1997/10/16 12:16:29 per Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.89 1997/10/16 23:46:06 js Exp $";   constant thread_safe=1;      #include <module.h>
941:      string magic_javascript_header(object id)   { -  if(!id->supports->javascript || !id->supports->images) return ""; +  if(!id->supports->netscape_javascript || !id->supports->images) return "";    return    ("\n<script>\n"    "function img_act(ri,hi,txt)\n"
959:    string mess,object id,string input,string extra_args)   {    if(!id->supports->images) return alt; -  if(!id->supports->javascript) +  if(!id->supports->netscape_javascript)    return (!input)?    ("<a "+extra_args+"href=\""+url+"\"><img _parsed=1 src=\""+image_1+"\" name="+sn+" border=0 "+    "alt=\""+alt+"\"></a>\n"):