Class: ODDB::View::User::Plugin

Inherits:
PublicTemplate show all
Defined in:
src/view/user/plugin.rb

Constant Summary

CONTENT =
View::User::PluginComposite

Constants inherited from PublicTemplate

COMPONENTS, CONTENT, CSS_CLASS, DOJO_DEBUG, DOJO_ENCODING, DOJO_PARSE_WIDGETS, DOJO_PREFIX, DOJO_REQUIRE, FOOT, HEAD, HTTP_HEADERS, META_TAGS

Instance Method Summary (collapse)

Methods inherited from PublicTemplate

#content, #css_link, #dynamic_html_headers, #foot, #head, #init, #javascripts, #title, #title_part_three, #topfoot

Methods included from Custom::HeadMethods

#just_medical, #oekk_head

Instance Method Details

- (Object) html_head(context)



67
68
69
70
71
72
73
# File 'src/view/user/plugin.rb', line 67

def html_head(context)
  super {
    context.script({'type'=>'text/javascript'}) {
      "<!--\nfunction errorMsg()\n{\nalert(\"Netscape 6 or Mozilla is needed to install a sherlock plugin\");\n}\nfunction addEngine(name,ext,cat)\n{\nif ((typeof window.sidebar == \"object\") && (typeof window.sidebar.addSearchEngine == \"function\"))\n{\nwindow.sidebar.addSearchEngine(\n\"http://www.oddb.org/resources/plugins/\"+name+\".src\",\n\"http://www.oddb.org/resources/plugins/\"+name+\".\"+ext,\nname,\ncat );\n}\nelse\n{\nerrorMsg();\n}\n}\n//-->\n"
    }
  } 
end