]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - tpl/linklist.html
Version 0.0.37 beta
[github/shaarli/Shaarli.git] / tpl / linklist.html
index dc5b53986eaaa24bf88f2ab9d32f3e2178856505..1067d6fcbd8d2a212bd35c2fbfa7ffd81101835a 100644 (file)
@@ -5,8 +5,8 @@
 <div id="pageheader">
        {include="page.header"}
        <div id="headerform" style="width:100%; white-space:nowrap;">
-           <form method="GET" class="searchform" name="searchform" style="display:inline;"><input type="text" name="searchterm" style="width:30%" value=""> <input type="submit" value="Search" class="bigbutton"></form>
-           <form method="GET" class="tagfilter" name="tagfilter" style="display:inline;margin-left:24px;"><input type="text" name="searchtags" id="searchtags" style="width:10%" value=""> <input type="submit" value="Filter by tag" class="bigbutton"></form>
+           <form method="GET" class="searchform" name="searchform" style="display:inline;"><input type="text" id="searchform_value" name="searchterm" style="width:30%" value=""> <input type="submit" value="Search" class="bigbutton"></form>
+           <form method="GET" class="tagfilter" name="tagfilter" style="display:inline;margin-left:24px;"><input type="text" name="searchtags" id="tagfilter_value" style="width:10%" value=""> <input type="submit" value="Filter by tag" class="bigbutton"></form>
        </div>
 </div>
 
 
     {include="page.footer"}
 <script>
-$('a.qrcode').click(function(){
-  hide_qrcode();
-  var link = $(this).attr('href');
-  $(this).after('<div class="qrcode" onclick="hide_qrcode();return false;"><img src="'+link+'#" width="200" height="200"><br>click to close</div>');
+$(document).ready(function() {
+       $('a.qrcode').click(function(){
+         hide_qrcode();
+         var link = $(this).attr('href');
+         $(this).after('<div class="qrcode" onclick="hide_qrcode();return false;"><img src="'+link+'#" width="200" height="200"><br>click to close</div>');
+       });
 });
-
-function hide_qrcode()
-{
-    $('div.qrcode').remove();
-}
+function hide_qrcode() { $('div.qrcode').remove(); }
 </script>
 </body>
 </html>
\ No newline at end of file