/[jquery]/no_pager/no_pager.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /no_pager/no_pager.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 9 by dpavlin, Wed Aug 16 00:29:08 2006 UTC revision 10 by dpavlin, Wed Aug 16 01:02:00 2006 UTC
# Line 40  function addMoreHistory( xmlDoc ){ Line 40  function addMoreHistory( xmlDoc ){
40          var index_el = getElement("history_index");          var index_el = getElement("history_index");
41          var indexVal = parseInt(index_el.value);          var indexVal = parseInt(index_el.value);
42    
43  // minimum response length?          // minimum response length?
44          if (response.length < 300){          if (response.length < 500){
45                                    
46             showElement("footer")             showElement("footer")
47             if( indexVal > 0 ){             if( indexVal > 0 ){
# Line 50  function addMoreHistory( xmlDoc ){ Line 50  function addMoreHistory( xmlDoc ){
50                                             );                                             );
51             }else{             }else{
52                     var out = H2({'style':'text-align:center; font-style:italic; padding: 2em;'},                     var out = H2({'style':'text-align:center; font-style:italic; padding: 2em;'},
53                                                  "No posts matched your search."                                                  "No results matched your search."
54                                             );                                             );
55             }             }
56             replaceChildNodes( "more_history", out )             replaceChildNodes( "more_history", out )
57               getElement("status").innerHTML = '';
58             return;             return;
59          }          }
60    

Legend:
Removed from v.9  
changed lines
  Added in v.10

  ViewVC Help
Powered by ViewVC 1.1.26