Permalink
Browse files

Merge pull request #96 from cpommiss/patch-1

Small fix to force the ColorPicker to close if you're tabbing out of a color input field.
  • Loading branch information...
2 parents 52eaa34 + 135143e commit a17855e43216eb88b1d155e648cd1bee402855bc @uxder uxder committed May 11, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 javascript/javascript.js
View
@@ -559,6 +559,9 @@ $(document).ready(function () {
//create colorpicker
colorPicker("b[i='s2Hex'], b[i='lHex']", 'hex');
+ //force colorpicker to close when tabbing out of a color input field
+ $("b[i='s2Hex'] input, b[i='lHex'] input").bind("keydown", function(e) { if (e.keyCode == 9) $(this).parent("b").ColorPickerHide(); });
+
//track events via google analytics custom events
$(document).on('click', 'b, #matrixbox', function(event) {
trackEvent( $(this).closest('.rule_wrapper').attr('id') );

0 comments on commit a17855e

Please sign in to comment.