Merge branch 'amovah-master'
This commit is contained in:
commit
ab2d17067d
@ -5,7 +5,7 @@ $('li[contenteditable]').click(function(e) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$('li[contenteditable]').on('keydown', function(e) {
|
$('li[contenteditable]').on('keydown', function(e) {
|
||||||
if(e.keyCode !== 8 && isNaN(+e.key)) return e.preventDefault();
|
if([8, 37, 38, 39 ,40, 46].indexOf(e.keyCode) < 0 && isNaN(+e.key)) return e.preventDefault();
|
||||||
});
|
});
|
||||||
$('li[contenteditable]').on('keyup', function(e) {
|
$('li[contenteditable]').on('keyup', function(e) {
|
||||||
$(this).data('val', /\d*/.exec($(this).html()));
|
$(this).data('val', /\d*/.exec($(this).html()));
|
||||||
|
2
ipsum.js
2
ipsum.js
@ -1,7 +1,7 @@
|
|||||||
var express = require('express'),
|
var express = require('express'),
|
||||||
app = express();
|
app = express();
|
||||||
|
|
||||||
app.use(express.static(__dirname + '/ipsum', {maxAge: 60*60*24*7}));
|
app.use(express.static(__dirname + '/client', {maxAge: 60*60*24*7}));
|
||||||
|
|
||||||
module.exports.app = app;
|
module.exports.app = app;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user