Emoji picker, Search and Themes updates
This commit is contained in:
@ -98,17 +98,19 @@ $('body').on('click', '.replies', function(e) {
|
||||
});
|
||||
});
|
||||
|
||||
$('body').on('click', '.ldr:not(.topicon)', function(e) {
|
||||
$('.topicon').each(function(a){
|
||||
$('body').on('click', '.ldr:not(.tlicon)', function(e) {
|
||||
$('.tlicon').each(function(a){
|
||||
$( this ).removeClass('tiselected')
|
||||
});
|
||||
});
|
||||
|
||||
$('body').on('click', '.ldr', function(e) {
|
||||
e.preventDefault();
|
||||
location.hash = "#top";
|
||||
$('#loader').html('');
|
||||
$('#loaded').remove();
|
||||
var url = $(this).attr('href');
|
||||
var id = $(this).attr('id');
|
||||
localStorage.setItem("content", $('#content .element').detach());
|
||||
$('#content').html('<center><img src="img/loadingb.gif"></center>');
|
||||
$.get(url + "&ajax=1", function(data) {
|
||||
@ -336,6 +338,10 @@ function getMode() {
|
||||
console.log('tag');
|
||||
return "&tag=" + getUrlParameter('tag');
|
||||
}
|
||||
if (typeof getUrlParameter('search') !== 'undefined') {
|
||||
console.log('tag');
|
||||
return "&search=" + getUrlParameter('search');
|
||||
}
|
||||
return "&mode=federated";
|
||||
};
|
||||
|
||||
@ -344,6 +350,9 @@ function loadmore(){
|
||||
if (typeof thread !== 'undefined') {
|
||||
return false;
|
||||
}
|
||||
if (typeof getUrlParameter('search') !== 'undefined') {
|
||||
return false;
|
||||
}
|
||||
var thread = getUrlParameter('thread');
|
||||
if (typeof thread === 'undefined') {
|
||||
var error = $(".error").length;
|
||||
@ -379,6 +388,10 @@ function newPosts() {
|
||||
if (typeof thread !== 'undefined') {
|
||||
return false;
|
||||
}
|
||||
var search = getUrlParameter('search');
|
||||
if (typeof search !== 'undefined') {
|
||||
return false;
|
||||
}
|
||||
var error = $(".error").length;
|
||||
if (error >= 1) {
|
||||
return false;
|
||||
@ -463,4 +476,4 @@ function themecheck(name){
|
||||
else{
|
||||
$('#customtheme').css("display","none");
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user