small tweaks
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 12 Jan 2006 14:59:38 +0000 (14:59 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 12 Jan 2006 14:59:38 +0000 (14:59 +0000)
sorting callnumber dropdown alphabetically

git-svn-id: svn://svn.open-ils.org/ILS/trunk@2694 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/js/rdetail.js
Open-ILS/web/opac/skin/default/xml/myopac/myopac_bookbags.xml

index b833638..86865d5 100644 (file)
@@ -224,7 +224,12 @@ function rdetailShowExtra(type) {
 function rdetailBuildCNList() {
        var select = $('cn_browse_selector');
        var index = 0;
-       for( var cn in callnumberCache ) {
+       var arr = [];
+       for( var cn in callnumberCache ) arr.push( cn );
+       arr.sort();
+
+       for( var i in arr ) {
+               var cn = arr[i];
                var opt = new Option(cn);
                opt.onclick = rdetailGatherCN;
                select.options[index++] = opt;
index 61b9aa8..2a1c614 100644 (file)
@@ -13,6 +13,7 @@
        <div style='text-align: center; font-weight: bold;' class='hide_me' id='myopac_bookbags_none'>You have not created any bookbags</div>
 
        <div style='width: 99%; text-align: center'> <b>My Bookbags</b></div>
+       <br/>
        <table width='100%' class='data_grid data_grid_center hide_me' id='myopac_bookbag_table'>
                <thead>
                        <tr><td>Name</td><td># Items</td><td>Delete this bookbag?</td></tr>
@@ -23,7 +24,7 @@
                                        <a href='javascript:void(0);' class='classic_link' name='myopac_expand_bookbag'> </a>
                                </td>
                                <td><span name='myopac_bookbag_item_count'> </span> <span>Items</span></td>
-                               <td><a class='class_link' href='javascript:void(0);' name='myopac_container_delete'>Delete</a></td>
+                               <td><a class='classic_link' href='javascript:void(0);' name='myopac_container_delete'>Delete</a></td>
                        </tr>
                </tbody>
        </table>
@@ -51,6 +52,7 @@
        -->
 
                <div style='width: 99%; text-align: center'> <b id='myopac_bookbag_items_name'> </b></div>
+               <br/>
 
                <div class='hide_me' style='width: 100%; text-align: center; font-weight: 700; margin-top: 10px;'
                        id='myopac_bookbag_no_items'>The selected bookbag contains no items...</div>