Browse Source

fix document ready

pull/40/head
towards-a-new-leftypol 3 years ago
parent
commit
5b6233f187
  1. 3
      js/catalog-search.js
  2. 2
      js/download-original.js
  3. 2
      js/expand-all-images.js
  4. 2
      js/expand-video.js
  5. 2
      js/flag-preview.js
  6. 2
      js/inline-expanding-filename.js
  7. 2
      js/post-hover.js
  8. 2
      js/show-backlinks.js
  9. 2
      js/smartphone-spoiler.js
  10. 2
      js/style-select.js
  11. 2
      js/youtube.js

3
js/catalog-search.js

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

2
js/download-original.js

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

2
js/expand-all-images.js

@ -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'))

2
js/expand-video.js

@ -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];

2
js/flag-preview.js

@ -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();

2
js/inline-expanding-filename.js

@ -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');

2
js/post-hover.js

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

2
js/show-backlinks.js

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

2
js/smartphone-spoiler.js

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

2
js/style-select.js

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

2
js/youtube.js

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

Loading…
Cancel
Save