updating tips stuff
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Nov 2005 15:17:06 +0000 (15:17 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Nov 2005 15:17:06 +0000 (15:17 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2019 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/locale/en-US/lang.dtd
Open-ILS/web/opac/skin/default/js/tips.js
Open-ILS/web/opac/skin/default/xml/result_table.xml
Open-ILS/web/opac/skin/default/xml/tips.xml

index 64cf1f9..56d91e1 100644 (file)
@@ -23,6 +23,7 @@
 
 <!ENTITY common.nowSearching "Now searching ">
 <!ENTITY common.at " at ">
+<!ENTITY common.of " of ">
 <!ENTITY common.ofAtLeast " of at least ">
 <!ENTITY common.relevancy "Relevancy ">
 
index 6cdd2e8..b24985b 100644 (file)
@@ -1,4 +1,4 @@
-attachEvt('common', 'run', insertTip);
+attachEvt('result', 'allRecordsReceived', insertTip);
 
 /*
 var user_tips = [
@@ -13,6 +13,7 @@ function insertTip () {
                var tips = tip_div.getElementsByTagName('div')[0].getElementsByTagName('span');
                var index = Math.floor(Math.random() * tips.length);
                tip_div.appendChild( tips[index] );
+               removeCSSClass(tip_div, 'hide_me');
        }
 }
 
index 6fcc43f..363b2a5 100644 (file)
@@ -34,7 +34,7 @@
                                                                                <span id='result_count'> </span>
                                                                                <span style='padding-left: 6px;'> (page </span>
                                                                                <span id='current_page'> </span>
-                                                                               <span> &common.ofAtLeast; </span>
+                                                                               <span> &common.of; </span>
                                                                                <span id='num_pages'> </span>
                                                                        </span>
 
index 9a51b2c..cf31218 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version='1.0'?>
 
-<div id='tips' class='tips'>
+<div id='tips' class='tips hide_me'>
        <div class='hide_me'>
                <span>&common.tips.tip1;</span>
                <span>&common.tips.tip2;</span>