Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging

pull/1/head
yflory 8 years ago
commit 51bd41d4e8

@ -114,7 +114,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="version-footer">CryptPad v1.6.0 (Hodag)</div> <div class="version-footer">CryptPad v1.7.0 (Hodag)</div>
</footer> </footer>
</body> </body>

@ -111,7 +111,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="version-footer">CryptPad v1.6.0 (Hodag)</div> <div class="version-footer">CryptPad v1.7.0 (Hodag)</div>
</footer> </footer>
</body> </body>

@ -233,7 +233,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="version-footer">CryptPad v1.6.0 (Hodag)</div> <div class="version-footer">CryptPad v1.7.0 (Hodag)</div>
</footer> </footer>
</body> </body>

@ -132,7 +132,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="version-footer">CryptPad v1.6.0 (Hodag)</div> <div class="version-footer">CryptPad v1.7.0 (Hodag)</div>
</footer> </footer>
</body> </body>

@ -39,5 +39,5 @@
</div> </div>
</div> </div>
</div> </div>
<div class="version-footer">CryptPad v1.6.0 (Hodag)</div> <div class="version-footer">CryptPad v1.7.0 (Hodag)</div>
</footer> </footer>

@ -115,7 +115,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="version-footer">CryptPad v1.6.0 (Hodag)</div> <div class="version-footer">CryptPad v1.7.0 (Hodag)</div>
</footer> </footer>
</body> </body>

@ -1,7 +1,7 @@
{ {
"name": "cryptpad", "name": "cryptpad",
"description": "realtime collaborative visual editor with zero knowlege server", "description": "realtime collaborative visual editor with zero knowlege server",
"version": "1.8.0", "version": "1.7.0",
"dependencies": { "dependencies": {
"chainpad-server": "^1.0.1", "chainpad-server": "^1.0.1",
"express": "~4.10.1", "express": "~4.10.1",

@ -103,10 +103,10 @@ Version 1
if (!href) { return ret; } if (!href) { return ret; }
if (href.slice(-1) !== '/') { href += '/'; } if (href.slice(-1) !== '/') { href += '/'; }
var idx;
if (!/^https*:\/\//.test(href)) { if (!/^https*:\/\//.test(href)) {
var idx = href.indexOf('/#'); idx = href.indexOf('/#');
ret.type = href.slice(1, idx); ret.type = href.slice(1, idx);
ret.hash = href.slice(idx + 2); ret.hash = href.slice(idx + 2);
ret.hashData = parseTypeHash(ret.type, ret.hash); ret.hashData = parseTypeHash(ret.type, ret.hash);
@ -118,7 +118,7 @@ Version 1
ret.type = type; ret.type = type;
return ''; return '';
}); });
var idx = href.indexOf('/#'); idx = href.indexOf('/#');
ret.hash = href.slice(idx + 2); ret.hash = href.slice(idx + 2);
ret.hashData = parseTypeHash(ret.type, ret.hash); ret.hashData = parseTypeHash(ret.type, ret.hash);
return ret; return ret;

@ -3,7 +3,7 @@ define([
'/bower_components/marked/marked.min.js', '/bower_components/marked/marked.min.js',
'/bower_components/diff-dom/diffDOM.js' '/bower_components/diff-dom/diffDOM.js'
],function ($, Marked) { ],function ($, Marked) {
var DiffMd = {} var DiffMd = {};
var DiffDOM = window.diffDOM; var DiffDOM = window.diffDOM;
var renderer = new Marked.Renderer(); var renderer = new Marked.Renderer();
@ -108,7 +108,7 @@ define([
return patch; return patch;
}; };
var apply = DiffMd.apply = function (newHtml, $content) { DiffMd.apply = function (newHtml, $content) {
var id = $content.attr('id'); var id = $content.attr('id');
if (!id) { throw new Error("The element must have a valid id"); } if (!id) { throw new Error("The element must have a valid id"); }
var $div = $('<div>', {id: id}).append(newHtml); var $div = $('<div>', {id: id}).append(newHtml);

@ -172,7 +172,7 @@ define([
}; };
exp.uploadCancel = function (cb) { exp.uploadCancel = function (cb) {
rpc.send('UPLOAD_CANCEL', void 0, function (e, res) { rpc.send('UPLOAD_CANCEL', void 0, function (e) {
if (e) { return void cb(e); } if (e) { return void cb(e); }
cb(); cb();
}); });

@ -105,7 +105,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="version-footer">CryptPad v1.6.0 (Hodag)</div> <div class="version-footer">CryptPad v1.7.0 (Hodag)</div>
</footer> </footer>
</body> </body>

Loading…
Cancel
Save