emk / mephisto forked from technoweenie/mephisto

User-friendly blogging with multisite support and asset managment

This URL has Read+Write access

Spyridon Vasileiadis (author)
Sun Mar 15 06:53:26 -0700 2009
emk (committer)
Sun Mar 15 06:56:38 -0700 2009
commit  0535b5ff99d45c94e6cb5d54d8ddaf24081840bd
tree    a89976f39245db9125dfb1dc3f21c0430d87953a
parent  c05e9ee1c3e6580b0bff72051c294cc955581001
mephisto / vendor / plugins / dialog_helper
name age message
..
file README Loading commit data...
file init.rb
file install.rb
directory javascripts/
directory lib/
directory tasks/
directory 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>