Skip to content
Snippets Groups Projects
Commit ab2a9d9b authored by Jared Hancock's avatar Jared Hancock
Browse files

pjax: Fix supported variables tooltip hover

parent 36d95b3c
Branches
Tags
No related merge requests found
......@@ -75,7 +75,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<div><b>Title</b><span class="error">*&nbsp;<?php echo $errors['title']; ?></span></div>
<input type="text" size="70" name="title" value="<?php echo $info['title']; ?>">
<br><br><div style="margin-bottom:0.5em"><b>Canned Response</b> <font class="error">*&nbsp;<?php echo $errors['response']; ?></font>
&nbsp;&nbsp;&nbsp;(<a class="tip" href="ticket_variables">Supported Variables</a>)
&nbsp;&nbsp;&nbsp;(<a class="tip" href="#ticket_variables">Supported Variables</a>)
</div>
<textarea name="response" class="richtext draft draft-delete" cols="21" rows="12"
data-draft-namespace="canned"
......
......@@ -133,7 +133,7 @@ else
<td width=7px>
<input type="checkbox" class="ckb" name="ids[]" value="<?php echo $row['log_id']; ?>"
<?php echo $sel?'checked="checked"':''; ?>> </td>
<td>&nbsp;<a class="tip" href="log/<?php echo $row['log_id']; ?>"><?php echo Format::htmlchars($row['title']); ?></a></td>
<td>&nbsp;<a class="tip" href="#log/<?php echo $row['log_id']; ?>"><?php echo Format::htmlchars($row['title']); ?></a></td>
<td><?php echo $row['log_type']; ?></td>
<td>&nbsp;<?php echo Format::db_daydatetime($row['created']); ?></td>
<td><?php echo $row['ip_address']; ?></td>
......
......@@ -87,7 +87,7 @@ $tpl=$msgtemplates[$selected];
<tr>
<th colspan="2">
<h4><?php echo Format::htmlchars($desc['desc']); ?></h4>
<em>Subject and body required. <a class="tip" href="ticket_variables.txt">Supported Variables</a>.</em>
<em>Subject and body required. <a class="tip" href="#ticket_variables.txt">Supported Variables</a>.</em>
</th>
</tr>
</thead>
......
......@@ -961,7 +961,7 @@ ul.tabs li a.active {
display:block;
height:30px;
position:absolute;
z-index:3;
z-index:101;
}
.tip_arrow {
......@@ -970,7 +970,7 @@ ul.tabs li a.active {
top:5px;
left:-12px;
width:12px;
z-index:4;
z-index:102;
}
.tip_box.right .tip_arrow {
......@@ -1500,7 +1500,7 @@ ul.progress li.no small {color:red;}
width: 100%;
height: 100%;
background: #000;
z-index: 101;
z-index: 103;
-webkit-transform: translate3d(0,0,0);
opacity: 0.5;
}
......
......@@ -46,15 +46,15 @@ jQuery(function() {
};
})();
var tip_id = 1;
//Generic tip.
$('.tip')
.each(function(i, e) {
e.rel = 'tip-' + i;
})
.live('click mouseover', function(e) {
e.preventDefault();
var id = this.rel;
var elem = $(this);
if (!this.rel)
this.rel = 'tip-' + (tip_id++);
var id = this.rel,
elem = $(this);
elem.data('id',id);
elem.data('timer',0);
......@@ -63,10 +63,10 @@ jQuery(function() {
// wait about 1 sec - before showing the tip - mouseout kills
// the timeout
elem.data('timer',setTimeout(function() {
showtip('ajax.php/content/'+elem.attr('href'),elem);i
showtip('ajax.php/content/'+elem.attr('href').substr(1),elem);
},750));
} else {
showtip('ajax.php/content/'+elem.attr('href'),elem);
showtip('ajax.php/content/'+elem.attr('href').substr(1),elem);
}
}
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment