add contraint , that everybody expect admin is limited to 3 days, Add card package

This commit is contained in:
2016-02-13 17:23:43 +01:00
parent 556bdc3066
commit 70f43468af
37 changed files with 1418 additions and 19 deletions

View File

@@ -1,6 +1,7 @@
var enterPressed;
var keyDate;
var seq = '';
var socket;
$(document).ready(
function(){
@@ -69,3 +70,28 @@ function addDocumentKeypressedListener(){
}
}
function startServer(){
try{
socket = new WebSocket("ws://localhost:8025/websockets/qrcode");
console.info('socket created');
socket.onmessage = function (event) {
console.log(event.data);
var msg = JSON.stringify(event.data);
if ( msg.msg == 'qrcode'){
console.info('qrcode rcvd');
}
}
}catch(e){
}
}
//startServer();
function sendMessage(){
socket.send("Here's some text that the server is urgently awaiting!");
}

View File

@@ -576,18 +576,18 @@ function ProductSell(o){
// Some item from your model is active!
if (current.name == $input.val()) {
// This means the exact match is found. Use toLowerCase() if you want case insensitive match.
console.info(current);
// console.info(current);
_findProduct(current.id_product);
} else {
// This means it is only a partial match, you can either add a new item
// or take the active if you don't want new items
console.info('partial');
// console.info('partial');
app.product = null;
productChanged();
}
} else {
// Nothing is active so it is a new value (or maybe empty value)
console.info('incactive');
// console.info('incactive');
app.product = null;
productChanged();
}