You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Hoan Dang Van (JIRA)" <ji...@apache.org> on 2014/03/25 04:18:45 UTC
[jira] [Commented] (OFBIZ-5588) Error while press F9(change
quantity) in webpos
[ https://issues.apache.org/jira/browse/OFBIZ-5588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13946088#comment-13946088 ]
Hoan Dang Van commented on OFBIZ-5588:
--------------------------------------
I tested. All function of F1- F11, up and down key run 13 time. I think cause is function bind() in jquery .
I wasn't $(document).bind(type, data, fnCode); line in definition WebPosHotkeys
and edited and all thing run good.
function activateHotKeys() {
WebPosHotkeys.bind("keydown", "f1", productToSearchFocus, "productToSearchFocus()", "${uiLabelMap.WebPosShortcutF1}");
WebPosHotkeys.bind("keydown", "f2", partyToSearchFocus, "partyToSearchFocus()", "${uiLabelMap.WebPosShortcutF2}");
WebPosHotkeys.bind("keydown", "f3", payCash, "payCash()", "${uiLabelMap.WebPosShortcutF3}");
WebPosHotkeys.bind("keydown", "f4", payCheck, "payCheck()", "${uiLabelMap.WebPosShortcutF4}");
WebPosHotkeys.bind("keydown", "f5", payGiftCard, "payGiftCard()", "${uiLabelMap.WebPosShortcutF5}");
WebPosHotkeys.bind("keydown", "f6", payCreditCard, "payCreditCard()", "${uiLabelMap.WebPosShortcutF6}");
WebPosHotkeys.bind("keydown", "f7", payFinish, "payFinish()", "${uiLabelMap.WebPosShortcutF7}");
WebPosHotkeys.bind("keydown", "f8", itemQuantityFocus, "itemQuantityFocus()", "${uiLabelMap.WebPosShortcutF8}");
WebPosHotkeys.bind("keydown", "f9", incrementItemQuantity, "incrementItemQuantity()", "${uiLabelMap.WebPosShortcutF9}");
WebPosHotkeys.bind("keydown", "f10", decrementItemQuantity, "decrementItemQuantity()", "${uiLabelMap.WebPosShortcutF10}");
WebPosHotkeys.bind("keydown", "f11", emptyCart, "emptyCart()", "${uiLabelMap.WebPosShortcutF11}");
WebPosHotkeys.bind("keydown", "up", keyUp, "keyUp()", "${uiLabelMap.WebPosShortcutKeyUp}");
WebPosHotkeys.bind("keydown", "down", keyDown, "keyDown()", "${uiLabelMap.WebPosShortcutKeyDown}");
keypress();
updateHotKeys();
}
function keypress(){
$(document).ready(function() {
$(document).bind('keydown', 'f1', function() {
productToSearchFocus();
e.preventDefault();
return false;
});
});
// function of f2.....f11,up and down key is similar
}
> Error while press F9(change quantity) in webpos
> ------------------------------------------------
>
> Key: OFBIZ-5588
> URL: https://issues.apache.org/jira/browse/OFBIZ-5588
> Project: OFBiz
> Issue Type: Bug
> Components: specialpurpose/webpos
> Affects Versions: SVN trunk
> Reporter: Hoan Dang Van
>
> When i click F9 to change quantity input of product, it increase 1 but when I press F9 key, the quantity of product increase 13.
--
This message was sent by Atlassian JIRA
(v6.2#6252)