fix document ready

This commit is contained in:
towards-a-new-leftypol 2021-06-27 01:40:57 +00:00
parent ab8b4b9524
commit 5b6233f187
11 changed files with 12 additions and 11 deletions

View File

@ -59,7 +59,8 @@ var searchThreads = function($threads, query) {
// Only load in the catalog
if (active_page == 'catalog') {
onready(catalogSearch);
$(document).ready(catalogSearch);
}
}());

View File

@ -15,7 +15,7 @@
*
*/
onready(function(){
$(document).ready(function(){
var do_original_filename = function() {
var filename, truncated;
if ($(this).attr('title')) {

View File

@ -17,7 +17,7 @@
*/
if (active_page == 'ukko' || active_page == 'thread' || active_page == 'index')
onready(function(){
$(document).ready(function(){
$('hr:first').before('<div id="expand-all-images" style="text-align:right"><a class="unimportant" href="javascript:void(0)"></a></div>');
$('div#expand-all-images a')
.text(_('Expand all images'))

View File

@ -216,7 +216,7 @@ function setupVideosIn(element) {
}
}
onready(function(){
$(document).ready(function(){
// Insert menu from settings.js
if (typeof settingsMenu != "undefined" && typeof Options == "undefined") {
var firsthr = document.getElementsByTagName("hr")[0];

View File

@ -26,7 +26,7 @@ function updatePreviewWithSelected(img, select) {
img.attr("src", getFlagUrl(select.find(":selected").val()));
}
onready(function(){
$(document).ready(function(){
var flagImg = $('#flag_preview');
var flagSelect = $('#user_flag');
var loaded = loadFlag();

View File

@ -13,7 +13,7 @@
*
*/
onready(function(){
$(document).ready(function(){
var inline_expanding_filename = function() {
$(this).find(".fileinfo > a").click(function(){
var imagelink = $(this).parent().parent().find('a[target="_blank"]:first');

View File

@ -13,7 +13,7 @@
*
*/
onready(function(){
$(document).ready(function () {
var dont_fetch_again = [];
init_hover = function() {
var $link = $(this);

View File

@ -13,7 +13,7 @@
*
*/
onready(function(){
$(document).ready(function(){
var showBackLinks = function() {
var reply_id = $(this).attr('id').replace(/^reply_/, '');

View File

@ -12,7 +12,7 @@
*
*/
onready(function(){
$(document).ready(function(){
if(device_type == 'mobile') {
var fix_spoilers = function(where) {
var spoilers = where.getElementsByClassName('spoiler');

View File

@ -14,7 +14,7 @@
*
*/
onready(function(){
$(document).ready(function(){
var stylesDiv = $('div.styles');
var pages = $('div.pages');
var stylesSelect = $('<select></select>');

View File

@ -23,7 +23,7 @@
*/
onready(function(){
$(document).ready(function(){
const ON = "[Remove]";
const OFF = "[Embed]";