projects
/
WP-Plugins
/
glm-member-db-events.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9b0746
)
changing the $ to jQuery in front.js
author
Anthony Talarico
<talarico@gaslightmedia.com>
Tue, 5 Feb 2019 15:09:43 +0000
(10:09 -0500)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Tue, 5 Feb 2019 15:09:43 +0000
(10:09 -0500)
making all of the jQuery calls uniform by changing the $ calls to jQuery so it doesn't break on sites that don't have no conflict scripts or don't use $ as a dependency or augmentation
js/front.js
patch
|
blob
|
history
diff --git
a/js/front.js
b/js/front.js
index
db65778
..
fd2defb
100644
(file)
--- a/
js/front.js
+++ b/
js/front.js
@@
-18,8
+18,8
@@
var EventFront = {
var imgData = $(this).data('src');
var imgSrc = $(this).attr('src');
if ( imgData && imgSrc == undefined ) {
-
$
(this).prop('src', imgData);
-
$
(this).removeData('src');
+
jQuery
(this).prop('src', imgData);
+
jQuery
(this).removeData('src');
}
});
});