forked from leftypol/leftypol
fix document ready
This commit is contained in:
parent
c44bbde511
commit
f4a785100d
11 changed files with 12 additions and 11 deletions
|
@ -59,7 +59,8 @@ var searchThreads = function($threads, query) {
|
||||||
|
|
||||||
// Only load in the catalog
|
// Only load in the catalog
|
||||||
if (active_page == '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 do_original_filename = function() {
|
||||||
var filename, truncated;
|
var filename, truncated;
|
||||||
if ($(this).attr('title')) {
|
if ($(this).attr('title')) {
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (active_page == 'ukko' || active_page == 'thread' || active_page == 'index')
|
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>');
|
$('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')
|
$('div#expand-all-images a')
|
||||||
.text(_('Expand all images'))
|
.text(_('Expand all images'))
|
||||||
|
|
|
@ -216,7 +216,7 @@ function setupVideosIn(element) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onready(function(){
|
$(document).ready(function(){
|
||||||
// Insert menu from settings.js
|
// Insert menu from settings.js
|
||||||
if (typeof settingsMenu != "undefined" && typeof Options == "undefined") {
|
if (typeof settingsMenu != "undefined" && typeof Options == "undefined") {
|
||||||
var firsthr = document.getElementsByTagName("hr")[0];
|
var firsthr = document.getElementsByTagName("hr")[0];
|
||||||
|
|
|
@ -26,7 +26,7 @@ function updatePreviewWithSelected(img, select) {
|
||||||
img.attr("src", getFlagUrl(select.find(":selected").val()));
|
img.attr("src", getFlagUrl(select.find(":selected").val()));
|
||||||
}
|
}
|
||||||
|
|
||||||
onready(function(){
|
$(document).ready(function(){
|
||||||
var flagImg = $('#flag_preview');
|
var flagImg = $('#flag_preview');
|
||||||
var flagSelect = $('#user_flag');
|
var flagSelect = $('#user_flag');
|
||||||
var loaded = loadFlag();
|
var loaded = loadFlag();
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onready(function(){
|
$(document).ready(function(){
|
||||||
var inline_expanding_filename = function() {
|
var inline_expanding_filename = function() {
|
||||||
$(this).find(".fileinfo > a").click(function(){
|
$(this).find(".fileinfo > a").click(function(){
|
||||||
var imagelink = $(this).parent().parent().find('a[target="_blank"]:first');
|
var imagelink = $(this).parent().parent().find('a[target="_blank"]:first');
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onready(function(){
|
$(document).ready(function () {
|
||||||
var dont_fetch_again = [];
|
var dont_fetch_again = [];
|
||||||
init_hover = function() {
|
init_hover = function() {
|
||||||
var $link = $(this);
|
var $link = $(this);
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onready(function(){
|
$(document).ready(function(){
|
||||||
var showBackLinks = function() {
|
var showBackLinks = function() {
|
||||||
var reply_id = $(this).attr('id').replace(/^reply_/, '');
|
var reply_id = $(this).attr('id').replace(/^reply_/, '');
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onready(function(){
|
$(document).ready(function(){
|
||||||
if(device_type == 'mobile') {
|
if(device_type == 'mobile') {
|
||||||
var fix_spoilers = function(where) {
|
var fix_spoilers = function(where) {
|
||||||
var spoilers = where.getElementsByClassName('spoiler');
|
var spoilers = where.getElementsByClassName('spoiler');
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
onready(function(){
|
$(document).ready(function(){
|
||||||
var stylesDiv = $('div.styles');
|
var stylesDiv = $('div.styles');
|
||||||
var pages = $('div.pages');
|
var pages = $('div.pages');
|
||||||
var stylesSelect = $('<select></select>');
|
var stylesSelect = $('<select></select>');
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
onready(function(){
|
$(document).ready(function(){
|
||||||
const ON = "[Remove]";
|
const ON = "[Remove]";
|
||||||
const OFF = "[Embed]";
|
const OFF = "[Embed]";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue