projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
quick payment tool improvements, RT10698
[freeside.git]
/
httemplate
/
elements
/
search-cust_main.html
diff --git
a/httemplate/elements/search-cust_main.html
b/httemplate/elements/search-cust_main.html
index
23c4369
..
e8c645e
100644
(file)
--- a/
httemplate/elements/search-cust_main.html
+++ b/
httemplate/elements/search-cust_main.html
@@
-11,7
+11,7
@@
Example:
);
</%doc>
);
</%doc>
-<INPUT TYPE="hidden" NAME="<% $field %>" VALUE="<% $value %>">
+<INPUT TYPE="hidden" NAME="<% $field %>"
ID="<% $field %>"
VALUE="<% $value %>">
<!-- some false laziness w/ misc/batch-cust_pay.html, though not as bad as i'd thought at first... -->
<!-- some false laziness w/ misc/batch-cust_pay.html, though not as bad as i'd thought at first... -->
@@
-56,8
+56,13
@@
Example:
}
}
+ var <% $field %>_search_active = false;
+
function smart_<% $field %>_search(what) {
function smart_<% $field %>_search(what) {
+ if ( <% $field %>_search_active )
+ return;
+
var customer = what.value;
if ( customer == 'searching...' || customer == ''
var customer = what.value;
if ( customer == 'searching...' || customer == ''
@@
-128,8
+133,12
@@
Example:
}
}
+ <% $field %>_search_active = false;
+
}
}
+ <% $field %>_search_active = true;
+
smart_search( customer, <% $field %>_search_update );
smart_search( customer, <% $field %>_search_update );