[feature/ajax] Added code to avoid conflicts with other libraries using $

PHPBB3-10270
This commit is contained in:
Callum Macrae 2011-07-26 11:46:49 +01:00 committed by Igor Wiedler
parent 7ccc18297a
commit 149daa0e4f

View file

@ -1,3 +1,6 @@
;(function($) { //avoid conflicts with other libraries
$.querystring = function(string) { $.querystring = function(string) {
var end = {}, i; var end = {}, i;
@ -345,3 +348,6 @@ phpbb.ajaxify({
return !(d == 'lock' || d == 'unlock' || d == 'delete_topic' || d.slice(0, 5) == 'make_'); return !(d == 'lock' || d == 'unlock' || d == 'delete_topic' || d.slice(0, 5) == 'make_');
} }
}, true); }, true);
})(jQuery); //avoid conflicts with other libraries