Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fixed error in object passing, causing the dialogs can't be created m…
Browse files Browse the repository at this point in the history
…ore than once in MooEditable.Group
  • Loading branch information
cheeaun committed Mar 19, 2009
1 parent 6e8fbe9 commit 782b05f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/MooEditable/MooEditable.js
Expand Up @@ -66,7 +66,7 @@ var MooEditable = new Class({
}
if (act.dialogs){
$each(act.dialogs, function(dialog, name){
if ($type(dialog) == 'function') dialog = dialog.attempt(this);
dialog = dialog.attempt(this);
dialog.name = action + ':' + name;
if ($type(this.dialogs[action]) != 'object') this.dialogs[action] = {};
this.dialogs[action][name] = dialog;
Expand Down Expand Up @@ -1113,7 +1113,7 @@ MooEditable.Actions = new Hash({
tags: ['a']
},
dialogs: {
alert: MooEditable.UI.AlertDialog('Please select the text you wish to hyperlink.'),
alert: MooEditable.UI.AlertDialog.pass('Please select the text you wish to hyperlink.'),
prompt: function(editor){
return MooEditable.UI.PromptDialog('Enter URL', 'http://', function(url){
editor.execute('createlink', false, url.trim());
Expand Down

0 comments on commit 782b05f

Please sign in to comment.