post load query function to goto comments, etc
This commit is contained in:
parent
5d4ec113be
commit
513103169e
|
@ -54,11 +54,30 @@ $('#listLeft ul li a').live("click", function() {
|
|||
// html = html.replace(searchTerm, "<span class='highlight'>" + searchTerm + "</span>");
|
||||
}
|
||||
$('#bottomRight').html(html);
|
||||
|
||||
postLoadQuery(); //parse query string params for post load actions
|
||||
// console.log(data);
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
function postLoadQuery() {
|
||||
if (queryData.hasOwnProperty("goto")) {
|
||||
var locationHash = queryData['goto'];
|
||||
var scrollTop = $('a[name=' + locationHash + ']').position().top;
|
||||
$(document).scrollTop(scrollTop + 400); //FIXME!!
|
||||
delete queryData['goto'];
|
||||
}
|
||||
/*
|
||||
if (queryData.hasOwnProperty("btn")) {
|
||||
var $btn = $('#' + queryData.btn);
|
||||
$btn.click();
|
||||
console.log($btn);
|
||||
delete queryData['btn'];
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
$('.lightboxNext').live("click", function(e) {
|
||||
var $i = $(this).data("image");
|
||||
$i.click();
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
|
||||
<td style="width:290px; padding:0px 0px 0px 10px; font-size:12px; font-family:'Century Gothic', Arial, Helvetica, sans-serif;border-bottom:2px solid #f8c92d; margin-left:8px">
|
||||
<p style="text-align:right; margin-bottom:4px;"><a href="http://theatreforum.in{{ issue.get_absolute_url }}" style="color:#ffcc00; text-decoration:none;">SUBSCRIBE |</a> <a href="http://theatreforum.in{{ issue.get_absolute_url }}" style="color:#ffcc00; text-decoration:none;">FEEDBACK </a></p>
|
||||
<p style="text-align:right; margin-bottom:4px;"><a href="http://theatreforum.in{{ issue.get_absolute_url }}" style="color:#ffcc00; text-decoration:none;">SUBSCRIBE |</a> <a href="http://theatreforum.in{{ issue.get_absolute_url }}&goto=comments" style="color:#ffcc00; text-decoration:none;">FEEDBACK </a></p>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<!--<p id="emailerDescription">A fortnightly theatre e-journal from the India Theatre Forum<br>Co-Editors: Vikram Iyengar, Joyoti Roy</p>EMAILER DESCRIPTION CLOSING -->
|
||||
|
||||
<ul id="navEmailer">
|
||||
<li><a href="#subscribe" class="toggleBtn" data-toggle="subscribeForm">Subscribe |</a></li>
|
||||
<li><a href="#subscribe" id="subscribe" class="toggleBtn" data-toggle="subscribeForm">Subscribe |</a></li>
|
||||
<li><a href="#comments">Feedback </a></li>
|
||||
<!--<li><a href="">Bulletin Board |</a></li>
|
||||
<li><a href="">Links</a></li>-->
|
||||
|
|
Loading…
Reference in New Issue
Block a user