Explorar el Código

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

tags/vichan-devel-4.4.93
czaks hace 10 años
padre
commit
46d527ecf6
Se han modificado 19 ficheros con 27 adiciones y 25 borrados
  1. +1
    -1
      js/download-original.js
  2. +1
    -1
      js/expand.js
  3. +1
    -1
      js/forced-anon.js
  4. +1
    -1
      js/hide-images.js
  5. +1
    -1
      js/hide-threads.js
  6. +1
    -1
      js/inline-expanding-filename.js
  7. +1
    -1
      js/inline-expanding.js
  8. +6
    -4
      js/jquery.min.js
  9. +1
    -1
      js/local-time.js
  10. +1
    -1
      js/post-hover.js
  11. +1
    -1
      js/quick-post-controls.js
  12. +4
    -4
      js/quick-reply.js
  13. +1
    -1
      js/show-backlinks.js
  14. +1
    -1
      js/show-op.js
  15. +1
    -1
      js/smartphone-spoiler.js
  16. +1
    -1
      js/toggle-images.js
  17. +1
    -1
      js/toggle-locked-threads.js
  18. +1
    -1
      js/watch.js
  19. +1
    -1
      js/youtube.js

+ 1
- 1
js/download-original.js Ver fichero

@@ -36,7 +36,7 @@ onready(function(){

$('.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);
});
});

+ 1
- 1
js/expand.js Ver fichero

@@ -57,7 +57,7 @@ $(document).ready(function(){

$('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")) {
$(post).find('div.post.op span.omitted').each(do_expand);
}


+ 1
- 1
js/forced-anon.js Ver fichero

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


+ 1
- 1
js/hide-images.js Ver fichero

@@ -84,7 +84,7 @@ $(document).ready(function(){

$('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);
});
});

+ 1
- 1
js/hide-threads.js Ver fichero

@@ -78,7 +78,7 @@ $(document).ready(function(){

$('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]);
});
});

+ 1
- 1
js/inline-expanding-filename.js Ver fichero

@@ -27,7 +27,7 @@ onready(function(){
$('div[id^="thread_"]').each(inline_expanding_filename);
// 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);
});
});

+ 1
- 1
js/inline-expanding.js Ver fichero

@@ -57,7 +57,7 @@ onready(function(){
$('div[id^="thread_"]').each(inline_expand_post);

// 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);
});
} else {


+ 6
- 4
js/jquery.min.js
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 1
- 1
js/local-time.js Ver fichero

@@ -48,7 +48,7 @@ onready(function(){
if (window.jQuery) {
// 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);
});
}


+ 1
- 1
js/post-hover.js Ver fichero

@@ -168,7 +168,7 @@ onready(function(){
$('div.body a:not([rel="nofollow"])').each(init_hover);
// 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);
});
});


+ 1
- 1
js/quick-post-controls.js Ver fichero

@@ -83,7 +83,7 @@ $(document).ready(function(){

$('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);
});
});


+ 4
- 4
js/quick-reply.js Ver fichero

@@ -293,10 +293,10 @@
$origPostForm = $('form[name="post"]:first');
// 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"]').bind('change input propertychange', function() {
$postForm.find('textarea[name="body"]').on('change input propertychange', function() {
$origPostForm.find('textarea[name="body"]').val($(this).val());
});
$postForm.find('textarea[name="body"]').focus(function() {
@@ -308,10 +308,10 @@
$(this).attr('id', 'body');
});
// 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('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());
});



+ 1
- 1
js/show-backlinks.js Ver fichero

@@ -48,7 +48,7 @@ onready(function(){
$('div.post.reply').each(showBackLinks);

$(document).bind('new_post', function(e, post) {
$(document).on('new_post', function(e, post) {
if ($(post).hasClass("reply")) {
showBackLinks.call(post);
}


+ 1
- 1
js/show-op.js Ver fichero

@@ -40,7 +40,7 @@ $(document).ready(function(){
$('div.post.reply').each(showOPLinks);
// 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);
});
});


+ 1
- 1
js/smartphone-spoiler.js Ver fichero

@@ -25,7 +25,7 @@ onready(function(){
fix_spoilers(document);

// 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);
});


+ 1
- 1
js/toggle-images.js Ver fichero

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


+ 1
- 1
js/toggle-locked-threads.js Ver fichero

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


+ 1
- 1
js/watch.js Ver fichero

@@ -189,7 +189,7 @@ $(function(){
}

if (device_type == "desktop")
link.unbind().mouseenter(function() {
link.off().mouseenter(function() {
updating_suspended = true;
$('.cb-menu').remove();



+ 1
- 1
js/youtube.js Ver fichero

@@ -38,7 +38,7 @@ onready(function(){
do_embed_yt(document);

// 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);
});
});


Cargando…
Cancelar
Guardar