Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

$(document).trigger rather than $.trigger for events.

  • Loading branch information...
commit 95fc019bbd42677bc55de1792fe66ae2b4c20d20 1 parent d2a8d40
@mattwiebe mattwiebe authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 js/admin.js
View
6 js/admin.js
@@ -29,9 +29,9 @@ jQuery(function($) {
case '#post-format-video':
case '#post-format-quote':
case '#post-format-audio':
- eval('CF.postFormats.' + formatHash.replace('#post-format-', '') + '();');
+ CF.postFormats[formatHash.replace('#post-format-', '')]();
}
- $.trigger('cf-post-formats-switch', formatHash);
+ $(document).trigger('cf-post-formats-switch', formatHash);
},
standard: function() {
@@ -93,7 +93,7 @@ jQuery(function($) {
}).end().insertAfter($('#titlediv'));
$('#cfpf-format-quote-fields').insertAfter($('#titlediv'));
- $.trigger('cf-post-formats-init');
+ $(document).trigger('cf-post-formats-init');
// tab switch
$('#cf-post-format-tabs a').live('click', function(e) {
Please sign in to comment.
Something went wrong with that request. Please try again.