Author Topic: Live search  (Read 2830 times)

Offline crasheg

  • Jr. Member
  • **
  • Posts: 12
Live search
« on: December 18, 2018, 06:29:00 PM »
Google shows you search results while you typing text in search box. I made same function in roundcube search box by editing in
Quote
\program\include\rcmail_output_html.php
Lines:
Quote
1930: array('id','class','style','name','method','action','enctype','onsubmit')
Quote
2168: 'onsubmit' => sprintf("%s.command('%s'); return false", self::JS_OBJECT_NAME, $attrib['command'] ?: 'search'),

to
Quote
1930: array('id','class','style','name','method','action','enctype','onsubmit','oninput')
Quote
2168:'oninput' => sprintf("%s.command('%s'); return false", self::JS_OBJECT_NAME, $attrib['command'] ?: 'search'),

I thing if developers add additional option to setting, that will enable/disable such option - will be great)