Skip to content

Commit

Permalink
use jQuery to initialize scripts
Browse files Browse the repository at this point in the history
This only replaces the loading mechanism, the scripts itself weren't
touched and should probably be updated.
  • Loading branch information
splitbrain committed Feb 22, 2013
1 parent a31bbd3 commit 99b1933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Expand Up @@ -3,7 +3,7 @@
*
* @author Adrian Lang <lang@cosmocode.de>
*/
addInitEvent(function () {
jQuery(function () {
if (typeof calendar === 'undefined') return;
var datepickers = getElementsByClass('data_type_dt', document, 'label');
for (var i = 0 ; i < datepickers.length ; ++i) {
Expand All @@ -20,7 +20,7 @@ addInitEvent(function () {
*
* @author Adrian Lang <lang@cosmocode.de>
*/
addInitEvent(function () {
jQuery(function () {
if (typeof addAutoCompletion !== 'function') return;

function prepareLi(li, value) {
Expand Down

0 comments on commit 99b1933

Please sign in to comment.