Permalink
Browse files

Recipient plugin fix to work with the ajax panel. Refs #114

  • Loading branch information...
1 parent f807a69 commit 7f2f5c13f04a3abfd99f0ead4580c44d0d399eda @matheo matheo committed Jul 18, 2012
@@ -163,9 +163,8 @@ function clip_enable_'.$this->id.'() {
maxItems: '.$this->maxitems.'
});
}
- document.observe(\'dom:loaded\', clip_enable_'.$this->id.', false);
+ clip_enable_'.$this->id.'();
'."\n// ]]>\n</script>";
- PageUtil::addVar('header', $script);
// build the autocompleter output
$typeDataHtml = '
@@ -189,7 +188,7 @@ function clip_enable_'.$this->id.'() {
</ul>
</div>';
- return $result . $typeDataHtml;
+ return $result . $typeDataHtml . $script;
}
/**
@@ -2,6 +2,7 @@
{ajaxheader filename='Zikula.Clip.Container.js' ui=true}
{pageaddvar name='javascript' value='modules/Clip/javascript/Clip.Pubtype.js'}
{pageaddvar name='javascript' value='modules/Clip/javascript/Clip.Pubfields.js'}
+{pageaddvar name='javascript' value='modules/Clip/javascript/Zikula.Autocompleter.js'}
{pageaddvar name='stylesheet' value='system/Theme/style/pagercss.css'}
{include file='clip_admin_header.tpl'}

0 comments on commit 7f2f5c1

Please sign in to comment.