Skip to content

Instantly share code, notes, and snippets.

@mikedfunk
Created October 27, 2011 19:34
Show Gist options
  • Save mikedfunk/1320609 to your computer and use it in GitHub Desktop.
Save mikedfunk/1320609 to your computer and use it in GitHub Desktop.
prevent link defaults, enable tinymce
/**
* admin actions
*
* Seperated from javascript functions for testing.
*
* @license Copyright Xulon Press, Inc. All Rights Reserved.
* @author Xulon Press
* @link http://xulonpress.com
* @email info@xulonpress.com
*
* @file
* @version 1.0
* @date 10/02/2011
*
* Copyright (c) 2011
*/
// --------------------------------------------------------------------------
/**
* document ready
*/
$(function()
{
// --------------------------------------------------------------------------
/**
* prevent link defaults
*/
$('html').delegate('a:not(.follow_link), a.disabled', 'click', function(e)
{
e.preventDefault();
// $(this).address();
});
// --------------------------------------------------------------------------
/**
* apply tinymce
*/
$('.rich_text').tinymce({script_url: './assets/scripts/tinymce/jscripts/tiny_mce/tiny_mce.js'});
// --------------------------------------------------------------------------
});
/* End of file admin_actions.js */
/* Location: ./booktrack/assets/scripts/admin_actions.js */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment