Browse Source

update jquery to 1.10.2; change "bind" to "on" everywhere; fixes vichan-devel#27

pull/40/head
czaks 10 years ago
parent
commit
46d527ecf6
  1. 2
      js/download-original.js
  2. 2
      js/expand.js
  3. 2
      js/forced-anon.js
  4. 2
      js/hide-images.js
  5. 2
      js/hide-threads.js
  6. 2
      js/inline-expanding-filename.js
  7. 2
      js/inline-expanding.js
  8. 10
      js/jquery.min.js
  9. 2
      js/local-time.js
  10. 2
      js/post-hover.js
  11. 2
      js/quick-post-controls.js
  12. 8
      js/quick-reply.js
  13. 2
      js/show-backlinks.js
  14. 2
      js/show-op.js
  15. 2
      js/smartphone-spoiler.js
  16. 2
      js/toggle-images.js
  17. 2
      js/toggle-locked-threads.js
  18. 2
      js/watch.js
  19. 2
      js/youtube.js

2
js/download-original.js

@ -36,7 +36,7 @@ onready(function(){
$('.postfilename').each(do_original_filename); $('.postfilename').each(do_original_filename);
$(document).bind('new_post', function(e, post) { $(document).on('new_post', function(e, post) {
$(post).find('.postfilename').each(do_original_filename); $(post).find('.postfilename').each(do_original_filename);
}); });
}); });

2
js/expand.js

@ -57,7 +57,7 @@ $(document).ready(function(){
$('div.post.op span.omitted').each(do_expand); $('div.post.op span.omitted').each(do_expand);
$(document).bind("new_post", function(e, post) { $(document).on("new_post", function(e, post) {
if (!$(post).hasClass("reply")) { if (!$(post).hasClass("reply")) {
$(post).find('div.post.op span.omitted').each(do_expand); $(post).find('div.post.op span.omitted').each(do_expand);
} }

2
js/forced-anon.js

@ -79,7 +79,7 @@ $(document).ready(function() {
if(forced_anon) if(forced_anon)
enable_fa(); enable_fa();
$(document).bind('new_post', function(e, post) { $(document).on('new_post', function(e, post) {
if(forced_anon) if(forced_anon)
$(post).find('p.intro label').each(force_anon); $(post).find('p.intro label').each(force_anon);
}); });

2
js/hide-images.js

@ -84,7 +84,7 @@ $(document).ready(function(){
$('div.post > a > img.post-image, div > a > img.post-image').each(handle_images); $('div.post > a > img.post-image, div > a > img.post-image').each(handle_images);
$(document).bind('new_post', function(e, post) { $(document).on('new_post', function(e, post) {
$(post).find('> a > img.post-image').each(handle_images); $(post).find('> a > img.post-image').each(handle_images);
}); });
}); });

2
js/hide-threads.js

@ -78,7 +78,7 @@ $(document).ready(function(){
$('div.post.op').each(do_hide_threads); $('div.post.op').each(do_hide_threads);
$(document).bind('new_post', function(e, post) { $(document).on('new_post', function(e, post) {
do_hide_threads.call($(post).find('div.post.op')[0]); do_hide_threads.call($(post).find('div.post.op')[0]);
}); });
}); });

2
js/inline-expanding-filename.js

@ -27,7 +27,7 @@ onready(function(){
$('div[id^="thread_"]').each(inline_expanding_filename); $('div[id^="thread_"]').each(inline_expanding_filename);
// allow to work with auto-reload.js, etc. // allow to work with auto-reload.js, etc.
$(document).bind('new_post', function(e, post) { $(document).on('new_post', function(e, post) {
inline_expanding_filename.call(post); inline_expanding_filename.call(post);
}); });
}); });

2
js/inline-expanding.js

@ -57,7 +57,7 @@ onready(function(){
$('div[id^="thread_"]').each(inline_expand_post); $('div[id^="thread_"]').each(inline_expand_post);
// allow to work with auto-reload.js, etc. // allow to work with auto-reload.js, etc.
$(document).bind('new_post', function(e, post) { $(document).on('new_post', function(e, post) {
inline_expand_post.call(post); inline_expand_post.call(post);
}); });
} else { } else {

10
js/jquery.min.js

File diff suppressed because one or more lines are too long

2
js/local-time.js

@ -48,7 +48,7 @@ onready(function(){
if (window.jQuery) { if (window.jQuery) {
// allow to work with auto-reload.js, etc. // allow to work with auto-reload.js, etc.
$(document).bind('new_post', function(e, post) { $(document).on('new_post', function(e, post) {
do_localtime(post); do_localtime(post);
}); });
} }

2
js/post-hover.js

@ -168,7 +168,7 @@ onready(function(){
$('div.body a:not([rel="nofollow"])').each(init_hover); $('div.body a:not([rel="nofollow"])').each(init_hover);
// allow to work with auto-reload.js, etc. // allow to work with auto-reload.js, etc.
$(document).bind('new_post', function(e, post) { $(document).on('new_post', function(e, post) {
$(post).find('div.body a:not([rel="nofollow"])').each(init_hover); $(post).find('div.body a:not([rel="nofollow"])').each(init_hover);
}); });
}); });

2
js/quick-post-controls.js

@ -83,7 +83,7 @@ $(document).ready(function(){
$('div.post input[type=checkbox].delete').each(init_qpc); $('div.post input[type=checkbox].delete').each(init_qpc);
$(document).bind('new_post', function(e, post) { $(document).on('new_post', function(e, post) {
$(post).find('input[type=checkbox].delete').each(init_qpc); $(post).find('input[type=checkbox].delete').each(init_qpc);
}); });
}); });

8
js/quick-reply.js

@ -293,10 +293,10 @@
$origPostForm = $('form[name="post"]:first'); $origPostForm = $('form[name="post"]:first');
// Synchronise body text with original post form // Synchronise body text with original post form
$origPostForm.find('textarea[name="body"]').bind('change input propertychange', function() { $origPostForm.find('textarea[name="body"]').on('change input propertychange', function() {
$postForm.find('textarea[name="body"]').val($(this).val()); $postForm.find('textarea[name="body"]').val($(this).val());
}); });
$postForm.find('textarea[name="body"]').bind('change input propertychange', function() { $postForm.find('textarea[name="body"]').on('change input propertychange', function() {
$origPostForm.find('textarea[name="body"]').val($(this).val()); $origPostForm.find('textarea[name="body"]').val($(this).val());
}); });
$postForm.find('textarea[name="body"]').focus(function() { $postForm.find('textarea[name="body"]').focus(function() {
@ -308,10 +308,10 @@
$(this).attr('id', 'body'); $(this).attr('id', 'body');
}); });
// Synchronise other inputs // Synchronise other inputs
$origPostForm.find('input[type="text"],select').bind('change input propertychange', function() { $origPostForm.find('input[type="text"],select').on('change input propertychange', function() {
$postForm.find('[name="' + $(this).attr('name') + '"]').val($(this).val()); $postForm.find('[name="' + $(this).attr('name') + '"]').val($(this).val());
}); });
$postForm.find('input[type="text"],select').bind('change input propertychange', function() { $postForm.find('input[type="text"],select').on('change input propertychange', function() {
$origPostForm.find('[name="' + $(this).attr('name') + '"]').val($(this).val()); $origPostForm.find('[name="' + $(this).attr('name') + '"]').val($(this).val());
}); });

2
js/show-backlinks.js

@ -48,7 +48,7 @@ onready(function(){
$('div.post.reply').each(showBackLinks); $('div.post.reply').each(showBackLinks);
$(document).bind('new_post', function(e, post) { $(document).on('new_post', function(e, post) {
if ($(post).hasClass("reply")) { if ($(post).hasClass("reply")) {
showBackLinks.call(post); showBackLinks.call(post);
} }

2
js/show-op.js

@ -40,7 +40,7 @@ $(document).ready(function(){
$('div.post.reply').each(showOPLinks); $('div.post.reply').each(showOPLinks);
// allow to work with auto-reload.js, etc. // allow to work with auto-reload.js, etc.
$(document).bind('new_post', function(e, post) { $(document).on('new_post', function(e, post) {
$(post).each(showOPLinks); $(post).each(showOPLinks);
}); });
}); });

2
js/smartphone-spoiler.js

@ -25,7 +25,7 @@ onready(function(){
fix_spoilers(document); fix_spoilers(document);
// allow to work with auto-reload.js, etc. // allow to work with auto-reload.js, etc.
$(document).bind('new_post', function(e, post) { $(document).on('new_post', function(e, post) {
fix_spoilers(post); fix_spoilers(post);
}); });

2
js/toggle-images.js

@ -76,7 +76,7 @@ $(document).ready(function(){
show_hide_hide_images_buttons(); show_hide_hide_images_buttons();
} }
$(document).bind('new_post', function(e, post) { $(document).on('new_post', function(e, post) {
if (hide_images) { if (hide_images) {
$(post).find('img.post-image').each(hideImage); $(post).find('img.post-image').each(hideImage);
} }

2
js/toggle-locked-threads.js

@ -61,7 +61,7 @@ $(document).ready(function(){
hideLockedThread(getThreadFromIcon($(this))); hideLockedThread(getThreadFromIcon($(this)));
}); });
} }
$(document).bind('new_post', function(e, post) { $(document).on('new_post', function(e, post) {
if (hide_locked_threads) { if (hide_locked_threads) {
$(post).find('img.icon[title="Locked"], i.fa-lock.fa').each(function() { $(post).find('img.icon[title="Locked"], i.fa-lock.fa').each(function() {
hideLockedThread(getThreadFromIcon($(this))); hideLockedThread(getThreadFromIcon($(this)));

2
js/watch.js

@ -189,7 +189,7 @@ $(function(){
} }
if (device_type == "desktop") if (device_type == "desktop")
link.unbind().mouseenter(function() { link.off().mouseenter(function() {
updating_suspended = true; updating_suspended = true;
$('.cb-menu').remove(); $('.cb-menu').remove();

2
js/youtube.js

@ -38,7 +38,7 @@ onready(function(){
do_embed_yt(document); do_embed_yt(document);
// allow to work with auto-reload.js, etc. // allow to work with auto-reload.js, etc.
$(document).bind('new_post', function(e, post) { $(document).on('new_post', function(e, post) {
do_embed_yt(post); do_embed_yt(post);
}); });
}); });

Loading…
Cancel
Save