lib/rdoc/generator/template/rails/resources/panel/index.html in sdoc-1.0.0.rc2 vs lib/rdoc/generator/template/rails/resources/panel/index.html in sdoc-1.0.0.rc3

- old
+ new

@@ -8,29 +8,11 @@ <script src="../js/searcher.js" type="text/javascript" charset="utf-8"></script> <script src="tree.js" type="text/javascript" charset="utf-8"></script> <script src="../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script> <script src="../js/searchdoc.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript" charset="utf-8"> - function placeholder() { - if ($('<input type="text">')[0].placeholder !== undefined) return; - - $('#search-label').click(function() { - $('#search').focus(); - $('#search-label').hide(); - }); - - $('#search').focus(function() { - $('#search-label').hide(); - }); - $('#search').blur(function() { - this.value == '' && $('#search-label').show(); - }); - - $('#search')[0].value == '' && $('#search-label').show(); - } $(function() { - placeholder(); $('#links').hide(); var panel = new Searchdoc.Panel($('#panel'), search_data, tree, top.frames[1]); $('#search').focus(); var s = window.parent.location.search.match(/\?q=([^&]+)/); @@ -46,19 +28,10 @@ </head> <body> <div class="panel panel_tree" id="panel"> <div class="header"> - <div> - <label for="search" id="search-label" style="display: none">Search</label> - <table> - <tr> - <td> - <input type="Search" placeholder="Search" autosave="searchdoc" results="10" id="search" autocomplete="off" /> - </td> - </tr> - </table> - </div> + <input type="text" placeholder="Search for a class, method, ..." autosave="searchdoc" results="10" id="search" autocomplete="off" /> </div> <div class="tree"> <ul> </ul> </div>