includes/clientside/static/autocomplete.js
changeset 367 ee4defc9321a
parent 263 d57af0b0302e
child 407 35d94240a197
equal deleted inserted replaced
366:7e16181545e1 367:ee4defc9321a
   183         {
   183         {
   184           html = '<span style="color: #555; padding: 4px;">'+errorstring+'</span>';
   184           html = '<span style="color: #555; padding: 4px;">'+errorstring+'</span>';
   185         }
   185         }
   186         else
   186         else
   187         {
   187         {
   188           html = '<table border="0" cellspacing="1" cellpadding="3" style="width: auto;"><tr><th><small>Username matches</small></th></tr>';
   188           html = '<table border="0" cellspacing="1" cellpadding="3" style="width: auto;"><tr><th><small>' + $lang.get('user_autofill_heading_suggestions') + '</small></th></tr>';
   189           cls = 'row2';
   189           cls = 'row2';
   190           unObjCurrentSelection = userlist[0];
   190           unObjCurrentSelection = userlist[0];
   191           for(i=0;i<userlist.length;i++)
   191           for(i=0;i<userlist.length;i++)
   192           {
   192           {
   193             tmpnam = 'listobjnode_'+Math.floor(Math.random() * 10000000);
   193             tmpnam = 'listobjnode_'+Math.floor(Math.random() * 10000000);
   249         {
   249         {
   250           html = '<span style="color: #555; padding: 4px;">'+errorstring+'</span>';
   250           html = '<span style="color: #555; padding: 4px;">'+errorstring+'</span>';
   251         }
   251         }
   252         else
   252         else
   253         {
   253         {
   254           html = '<table border="0" cellspacing="1" cellpadding="3" style="width: auto;"><tr><th colspan="2">Page name matches</th></tr><tr><th><small>Page title</small></th><th><small>Page ID</small></th></tr>';
   254           html = '<table border="0" cellspacing="1" cellpadding="3" style="width: auto;"><tr><th colspan="2">' + $lang.get('page_autosuggest_heading') + '</th></tr><tr><th><small>' + $lang.get('page_autosuggest_col_name') + '</small></th><th><small>' + $lang.get('page_autosuggest_col_page_id') + '</small></th></tr>';
   255           cls = 'row2';
   255           cls = 'row2';
   256           unObjCurrentSelection = userlist[0];
   256           unObjCurrentSelection = userlist[0];
   257           for(i=0;i<userlist.length;i++)
   257           for(i=0;i<userlist.length;i++)
   258           {
   258           {
   259             tmpnam = 'listobjnode_'+Math.floor(Math.random() * 10000000);
   259             tmpnam = 'listobjnode_'+Math.floor(Math.random() * 10000000);