Minor Fixes for jQuery 1.3.2 Upgrade
authorJohn Beppu <john.beppu@liblime.com>
Thu, 9 Jul 2009 01:09:00 +0000 (20:09 -0500)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 16 Sep 2009 21:19:41 +0000 (23:19 +0200)
I looked through all the relevant Javascript on this site
to find spots that would break in the upgrade from jQuery 1.2
to jQuery 1.3, and I fixed them.

Signed-off-by: John Beppu <john.beppu@liblime.com>
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader_authorities.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader_book.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader_computerfile.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_123g.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_leader.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/acceptorreject.tmpl

index 2c94cb3..dbc8612 100644 (file)
@@ -1,7 +1,7 @@
 <script type="text/javascript">//<![CDATA[
        $(document).ready(function() {
                var path = location.pathname.substring(1);
-               $('#navmenulist a[@href$="/' + path + '"]').css('font-weight','bold');
+               $('#navmenulist a[href$="/' + path + '"]').css('font-weight','bold');
        });
 //]]>
 </script>
index 2bed314..d5fb462 100644 (file)
@@ -14,7 +14,7 @@
                line.removeChild(ButtonPlus);
        }
        $(document).ready(function() {
-               $("input[@name='q']:eq(0)").focus();
+               $("input[name=q]:eq(0)").focus();
        });
 </script>
 </head>
index 702369e..25d406c 100644 (file)
        </tr>
 
        <tr>
-               <td>20-24 entry map & lengths</td>
+               <td>20-24 entry map &amp; lengths</td>
                <td>(auto-filled)</td>
        <tr>
 
index 3921c49..abe1cb9 100644 (file)
                </td>
        </tr>
        <tr>
-               <td>20-24 entry map & lengths</td>
+               <td>20-24 entry map &amp; lengths</td>
                <td>(auto-filled)</td>
        <tr>
 
index c05aabb..35618e6 100644 (file)
                </td>
        </tr>
        <tr>
-               <td>20-24 entry map & lengths</td>
+               <td>20-24 entry map &amp; lengths</td>
                <td>(auto-filled)</td>
        <tr>
 
index 164ca25..e824432 100644 (file)
@@ -57,7 +57,7 @@
        <tr><td colspan=2><input type="button" value="OK"  onClick="javascript:report()"></td></tr>
 </table>
 </form>
-<script type="text/javascritp">
+<script type="text/javascript">
        function report() {
             document.f_pop.f2.value=document.f_pop.f2.value+'   ';
             document.f_pop.f3.value=document.f_pop.f3.value+'  ';
index 7afbbab..2acdb20 100644 (file)
        </tr>
        
        <tr>
-               <td>19-24 entry map & lengths</td>
+               <td>19-24 entry map &amp; lengths</td>
                <td>(auto-filled)</td>
        <tr>
 
index f3a178a..45d8f98 100644 (file)
@@ -2,11 +2,11 @@
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <script>
 $(document).ready(function() {
-    $("input[@name='layoutchoice']").change( function() { layout_method() } );
+    $("input[name=layoutchoice]").change( function() { layout_method() } );
     layout_method();
 });
 function layout_method() {
-    if( $("input[@name='layoutchoice']:checked").val() == 'layout_string' ) {
+    if( $("input[name=layoutchoice]:checked").val() == 'layout_string' ) {
         $('#layout_tx').hide();
         $('#layout_string').show();
     } else {
index 15bf0d6..ddf4941 100644 (file)
@@ -56,7 +56,7 @@
                $("div[id*=other-reason]").hide();
                $("input[name*=other-reason]").focus(function(){ $(this).val(""); });
                $("select[name*=reason]").change(function(){
-                       if($(this).children("[@selected]").val() == "other"){
+                       if($(this).children("[selected]").val() == "other"){
                        displayOther($(this).attr("name").replace(/reason/,""),"other-reason","select-reason");
                        }
                });