Changeset - 02327021cfa6
[Not reviewed]
default
0 2 0
Nathan Brink (binki) - 15 years ago 2011-01-31 21:45:04
ohnobinki@ohnopublishing.net
Only show qTips on a user's first visit to the input.php page, based on session variables.
2 files changed with 8 insertions and 3 deletions:
0 comments (0 inline, 0 general)
input.php
Show inline comments
 
@@ -62,7 +62,11 @@ else
 
    $my_hc .= '    class_last = add_class();
 
';
 
  }
 
$my_hc .= '        addTips();';
 
if (!isset($_SESSION['saw_qtips']))
 
  {
 
    $my_hc .= '        addTips();';
 
    $_SESSION['saw_qtips'] = TRUE;
 
  }
 
$my_hc .= '  });
 
';
 

	
scripts/scheduleInput.js
Show inline comments
 
@@ -213,10 +213,11 @@ function genOptionHtml(value, content, t
 

	
 

	
 
/** Add tooltips for user guidance */
 
function addTips() {
 

	
 
function addTips()
 
{
 
  var tr = jQuery('tr');
 
  var td = tr.eq(tr.length-2);
 

	
 
  jQuery('td:first', td).qtip({
 
    content: 'Start typing your class ID (such as PEF-1010) and click a suggestion to add sections',
 
    style: {
0 comments (0 inline, 0 general)