emk / mephisto forked from technoweenie/mephisto
- Source
- Commits
- Network (36)
- Issues (0)
- Downloads (3)
- Wiki (3)
- Graphs
-
Tree:
0535b5f
Spyridon Vasileiadis (author)
Sun Mar 15 06:53:26 -0700 2009
commit 0535b5ff99d45c94e6cb5d54d8ddaf24081840bd
tree a89976f39245db9125dfb1dc3f21c0430d87953a
parent c05e9ee1c3e6580b0bff72051c294cc955581001
tree a89976f39245db9125dfb1dc3f21c0430d87953a
parent c05e9ee1c3e6580b0bff72051c294cc955581001
| name | age | message | |
|---|---|---|---|
| .. | |||
| |
README | ||
| |
init.rb | ||
| |
install.rb | ||
| |
javascripts/ | ||
| |
lib/ | ||
| |
tasks/ | ||
| |
test/ |
vendor/plugins/dialog_helper/README
DIALOG HELPER Dialog is a simple script for displaying styled dialog windows in browsers. It builds on the excellent Prototype and Scriptaculous libraries. The look and feel is CSS driven, and it's easy to create your own custom dialogs. Be sure to include dialog.js and add the appropriate styles. Project Page - http://weblog.techno-weenie.net/projects/dialog Javascript Subversion Location - http://techno-weenie.net/svn/projects/javascripts/dialog Rails Helper Plugin - http://techno-weenie.net/svn/projects/plugins/dialog_helper If install.rb did not copy the latest dialog.js, use the rake task: rake update_dialog_helper Here are some examples from the docs: <%= create_dialog(:confirm, :message => 'Are you sure?', :okay_test => 'Sure!', :on_okay => "function() { alert('whoa'); }") %> new Dialog.Confirm({message:'Are you sure?', okayTest:'Sure!', onOkay:function() { alert('whoa'); }}); <%= link_to_dialog('Open', {:confirm, :message => 'Are you sure?', :on_okay => "function() { alert('whoa'); }"}, {:title => 'Click to open dialog'}) %> <a href="#" title="Click to open dialog" onclick="new Dialog.Confirm({message:'Are you sure?', onOkay:function() { alert('whoa'); }});; return false;"> Open </a>

