jQuery wird jetzt über ein npm-Paket reingezogen, damit es nicht jedes mal runtergeladen werden muss.
This commit is contained in:
parent
2ffd0bd7d8
commit
fe84e85928
2 changed files with 5 additions and 3 deletions
7
event.js
7
event.js
|
@ -19,7 +19,8 @@ var
|
|||
,mustache = require('mustache')
|
||||
,strftime = require('strftime')
|
||||
,fs = require('fs')
|
||||
,glob = require('glob');
|
||||
,glob = require('glob')
|
||||
,jq = require('jquery');
|
||||
|
||||
function nextDay(x){
|
||||
var now = new Date();
|
||||
|
@ -150,9 +151,9 @@ EventTool.prototype.parseData = function() {
|
|||
var self = this.req.EventTool;
|
||||
jsdom.env(
|
||||
self.RequestData,
|
||||
["http://code.jquery.com/jquery.js"],
|
||||
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 match = null;
|
||||
self.events = [];
|
||||
|
|
|
@ -8,5 +8,6 @@
|
|||
, "nodemailer": "latest"
|
||||
, "strftime": "latest"
|
||||
, "glob": "latest"
|
||||
, "jquery": "latest"
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue