fix document ready
This commit is contained in:
parent
ab8b4b9524
commit
5b6233f187
|
@ -59,7 +59,8 @@ var searchThreads = function($threads, query) {
|
|||
|
||||
// Only load in the catalog
|
||||
if (active_page == 'catalog') {
|
||||
onready(catalogSearch);
|
||||
|
||||
$(document).ready(catalogSearch);
|
||||
}
|
||||
|
||||
}());
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
onready(function(){
|
||||
$(document).ready(function(){
|
||||
var do_original_filename = function() {
|
||||
var filename, truncated;
|
||||
if ($(this).attr('title')) {
|
||||
|
|
|
@ -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'))
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
onready(function(){
|
||||
$(document).ready(function () {
|
||||
var dont_fetch_again = [];
|
||||
init_hover = function() {
|
||||
var $link = $(this);
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
onready(function(){
|
||||
$(document).ready(function(){
|
||||
var showBackLinks = function() {
|
||||
var reply_id = $(this).attr('id').replace(/^reply_/, '');
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
onready(function(){
|
||||
$(document).ready(function(){
|
||||
if(device_type == 'mobile') {
|
||||
var fix_spoilers = function(where) {
|
||||
var spoilers = where.getElementsByClassName('spoiler');
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
onready(function(){
|
||||
$(document).ready(function(){
|
||||
var stylesDiv = $('div.styles');
|
||||
var pages = $('div.pages');
|
||||
var stylesSelect = $('<select></select>');
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
*/
|
||||
|
||||
|
||||
onready(function(){
|
||||
$(document).ready(function(){
|
||||
const ON = "[Remove]";
|
||||
const OFF = "[Embed]";
|
||||
|
||||
|
|
Loading…
Reference in New Issue