jQuery wird jetzt über ein npm-Paket reingezogen, damit es nicht jedes mal runtergeladen werden muss.

This commit is contained in:
Tim Schumacher 2013-01-22 20:42:38 +01:00
parent 2ffd0bd7d8
commit fe84e85928
2 changed files with 5 additions and 3 deletions

View file

@ -19,7 +19,8 @@ var
,mustache = require('mustache') ,mustache = require('mustache')
,strftime = require('strftime') ,strftime = require('strftime')
,fs = require('fs') ,fs = require('fs')
,glob = require('glob'); ,glob = require('glob')
,jq = require('jquery');
function nextDay(x){ function nextDay(x){
var now = new Date(); var now = new Date();
@ -150,9 +151,9 @@ EventTool.prototype.parseData = function() {
var self = this.req.EventTool; var self = this.req.EventTool;
jsdom.env( jsdom.env(
self.RequestData, self.RequestData,
["http://code.jquery.com/jquery.js"],
function (errors, window) { function (errors, window) {
var wiki_text = window.$("#wiki__text").val(); var $ = jq.create(window);
var wiki_text = $("#wiki__text").val();
var re = /\s\* (\d{4})\-(\d{2})\-(\d{2}) (\d{2})\:(\d{2}) - (\d{2})\:(\d{2}) (.*)/g; var re = /\s\* (\d{4})\-(\d{2})\-(\d{2}) (\d{2})\:(\d{2}) - (\d{2})\:(\d{2}) (.*)/g;
var match = null; var match = null;
self.events = []; self.events = [];

View file

@ -8,5 +8,6 @@
, "nodemailer": "latest" , "nodemailer": "latest"
, "strftime": "latest" , "strftime": "latest"
, "glob": "latest" , "glob": "latest"
, "jquery": "latest"
} }
} }