Changeset 1389


Ignore:
Timestamp:
02/22/07 12:28:38 (6 years ago)
Author:
ijm1
Message:

Added a reset button that loads the customer list without search terms applied

Location:
ccsweb/trunk/ccs_mods/billing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ccsweb/trunk/ccs_mods/billing/customerlist.js

    r1384 r1389  
    2525    '#num' : function(element){ 
    2626        element.onchange = num_disp_results; 
    27     } 
     27    }, 
     28    '#reset' : function(element){ 
     29        element.onclick = reset_search; 
     30    }, 
    2831}; 
    2932 
    3033Behaviour.register(myrules); 
    3134 
     35function reset_search() 
     36{ 
     37    window.location="/mods/billing"; 
     38} 
    3239function num_disp_results() 
    3340{ 
  • ccsweb/trunk/ccs_mods/billing/customerlist.tpl

    r1378 r1389  
    2727<input type=text name=search value="{$search}"/> 
    2828<input type=submit value="Search"> 
     29<input type=reset name=reset id=reset> 
    2930</form> 
    3031<form id=numform> 
Note: See TracChangeset for help on using the changeset viewer.