Index: trunk/extensions/MobileFrontend/javascripts/beta_application.js |
— | — | @@ -98,7 +98,7 @@ |
99 | 99 | } |
100 | 100 | } |
101 | 101 | |
102 | | - function utilities( el ) { |
| 102 | + utilities = typeof(jQuery) !== "undefined" ? jQuery : function( el ) { |
103 | 103 | if( typeof(el) === 'string' ) { |
104 | 104 | if( document.querySelectorAll ) { |
105 | 105 | return document.querySelectorAll( el ); |
— | — | @@ -133,7 +133,7 @@ |
134 | 134 | removeClass: removeClass |
135 | 135 | }; |
136 | 136 | } |
137 | | - utilities.ajax = function( options ) { |
| 137 | + utilities.ajax = utilities.ajax || function( options ) { |
138 | 138 | var xmlHttp, url; |
139 | 139 | if ( window.XMLHttpRequest ) { |
140 | 140 | xmlHttp = new XMLHttpRequest(); |
Index: trunk/extensions/MobileFrontend/javascripts/application.js |
— | — | @@ -94,7 +94,7 @@ |
95 | 95 | } |
96 | 96 | } |
97 | 97 | |
98 | | - utilities = function( el ) { |
| 98 | + utilities = typeof(jQuery) !== "undefined" ? jQuery : function( el ) { |
99 | 99 | if( typeof(el) === 'string' ) { |
100 | 100 | if( document.querySelectorAll ) { |
101 | 101 | return document.querySelectorAll( el ); |
— | — | @@ -128,7 +128,7 @@ |
129 | 129 | removeClass: removeClass |
130 | 130 | }; |
131 | 131 | } |
132 | | - utilities.ajax = function( options ) { |
| 132 | + utilities.ajax = utilities.ajax || function( options ) { |
133 | 133 | var xmlHttp, url; |
134 | 134 | if ( window.XMLHttpRequest ) { |
135 | 135 | xmlHttp = new XMLHttpRequest(); |