diff --git a/HISTORY.md b/HISTORY.md index cc27006..c4d1a71 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,8 +1,11 @@ +### v1.4 + * Added possibility to open and close the numpad programmatically: $(selector).numpad('open') and $(selector).numpad('close') + ### v1.3.1 - * Registered the plugin in the npm repository. + * Registered the plugin in the npm repository. ### v1.3 - * Added support for negative numbers and an appropriate button. + * Added support for negative numbers and an appropriate button. * Added support for fractions and a corresponding decimal button. * Removed the plus and minus button to save space. * Fixed changing multiple elements at the same time when the numpad is used for a collection (e.g. table column). diff --git a/demos/bootstrap/index.html b/demos/bootstrap/index.html index c4cba49..2b6e74e 100644 --- a/demos/bootstrap/index.html +++ b/demos/bootstrap/index.html @@ -36,6 +36,10 @@ }); $('#numpad4div').numpad(); $('#numpad4column .qtyInput').numpad(); + + $('#numpad4column tr').on('click', function(e){ + $(this).find('.qtyInput').numpad('open'); + }); });