|
From: <cod...@go...> - 2009-06-08 17:09:39
|
Author: ke...@se...
Date: Mon Jun 8 10:07:44 2009
New Revision: 1378
Modified:
trunk/andro/clib/x6.js
Log:
Modified auto-complete fetch to only execute if value changed.
No Google issue #.
Modified: trunk/andro/clib/x6.js
==============================================================================
--- trunk/andro/clib/x6.js (original)
+++ trunk/andro/clib/x6.js Mon Jun 8 10:07:44 2009
@@ -3614,10 +3614,16 @@
// to smooth out what happens when user
// is typing very quickly on auto-select
// and then hits TAB.
- var json = new x6JSON('x6fetch',$(inp).attr('xtableid'));
- json.addParm('x6col',$(inp).attr('xcolumnid'));
- json.addParm('x6val',$(inp).val());
- json.execute(true,true);
+ // KFD 6/8/09 Refinement, only execute if value changed
+ var orig =
$(inp).prop('zlastfetch',$(inp).attr('zOriginalValue'));
+ if(orig!=$(inp).val()) {
+ var val = $(inp).val();
+ var json = new x6JSON('x6fetch',$(inp).attr('xtableid'));
+ json.addParm('x6col',$(inp).attr('xcolumnid'));
+ json.addParm('x6val',val);
+ json.execute(true,true);
+ inp.zlastfetch = val;
+ }
}
x6.console.log("Input Blur DONE");
x6.console.groupEnd();
|