3551301f by Jeff Balicki

removed .live

1 parent e350a093
......@@ -371,7 +371,7 @@
// background graphics. The class can now can be removed.
$content.children().removeClass('hover');
$('.' + boxElement).live('click', function (e) {
$('.' + boxElement).on('click', function (e) {
// checks to see if it was a non-left mouse-click and for clicks modified with ctrl, shift, or alt.
if (!((e.button !== 0 && typeof e.button !== 'undefined') || e.ctrlKey || e.shiftKey || e.altKey)) {
e.preventDefault();
......
......@@ -174,7 +174,7 @@ jQuery(document).ready(function($) {
grabGalleryFeed();
$('.form-cancel').live('click',function() {
$('.form-cancel').on('click',function() {
hideErrors();
jQuery('#TzHybridGallery_Control').slideUp();
});
......
......@@ -368,7 +368,7 @@ endforeach;
updateNotificationType();
$('.attachment').live('click', function(e) {
$('.attachment').on('click', function(e) {
e.preventDefault();
var $link = $(this);
var options = {
......
......@@ -351,7 +351,7 @@ use Tz\WordPress\Tools\Notifications\Settings;
updateNotificationType();
$('.attachment').live('click', function (e) {
$('.attachment').on('click', function (e) {
e.preventDefault();
var $link = $(this);
var options = {
......