Skip to content

Commit

Permalink
cleaned JS files a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Mar 7, 2010
1 parent 34a156a commit 64ce3fd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
22 changes: 11 additions & 11 deletions web/js/admin/launcher.js
Expand Up @@ -3,18 +3,18 @@
// on page load
$(function()
{
$.dmAdminLaunchCkEditor = function()
{
// starts all players in the page
$('textarea.dm_ckeditor').each(function()
{
var $this = $(this), options = $this.metadata();

$.dmAdminLaunchCkEditor = function()
{
// starts all players in the page
$('textarea.dm_ckeditor').each(function()
{
var $this = $(this), options = $this.metadata();
$this.ckeditor(options);
});
};
$.dmAdminLaunchCkEditor();
});
};

$.dmAdminLaunchCkEditor();
});

})(jQuery);
9 changes: 2 additions & 7 deletions web/js/front/widgetForm.js
@@ -1,7 +1,7 @@
$.fn.dmWidgetContentCkEditorForm = function(widget)
{

var self = this, $textarea = self.find('textarea.dm_ckeditor'), editor;
var self = this, $textarea = self.find('textarea.dm_ckeditor');


//Kill all existing instances before loading
Expand All @@ -11,12 +11,7 @@ $.fn.dmWidgetContentCkEditorForm = function(widget)
CKEDITOR.remove(CKEDITOR.instances[$textarea.attr('id')]);
}

$textarea.ckeditor(function()
{
$.dbg(this);
},
$textarea.metadata()
);
$textarea.ckeditor(function(){}, $textarea.metadata());


self.find('input.submit').click(function() {
Expand Down

0 comments on commit 64ce3fd

Please sign in to comment.