add contraint , that everybody expect admin is limited to 3 days, Add card package
This commit is contained in:
@@ -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!");
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user