| 1 |
// $Id: photos.js,v 1.1.2.3 2008/08/27 17:02:16 eastcn Exp $ |
// $Id: photos.js,v 1.1.2.1 2009/03/06 08:32:31 eastcn Exp $ |
| 2 |
Drupal.behaviors.photos = function (context) { |
Drupal.behaviors.photos = function (context) { |
| 3 |
$('.photos_block_sub_open').click(function(){ |
$('.photos_block_sub_open').click(function(){ |
| 4 |
v = $(this).parent().siblings('.photos_block_sub_body'); |
v = $(this).parent().siblings('.photos_block_sub_body'); |
| 32 |
$('textarea, input, select', $('.edit-del-all').parents('tr')).not(this).attr('disabled', false).removeClass('photos_check'); |
$('textarea, input, select', $('.edit-del-all').parents('tr')).not(this).attr('disabled', false).removeClass('photos_check'); |
| 33 |
} |
} |
| 34 |
}); |
}); |
| 35 |
|
$('.photos_imagehtml').hover(function(){ |
| 36 |
|
$(this).children('.photos_imagehtml_thickbox').css('display', 'block'); |
| 37 |
|
},function(){ |
| 38 |
|
$(this).children('.photos_imagehtml_thickbox').css('display', 'none'); |
| 39 |
|
}); |
| 40 |
$('.edit-del-all input').click(function(){ |
$('.edit-del-all input').click(function(){ |
| 41 |
if(this.checked){ |
if(this.checked){ |
| 42 |
$(this).parents('tr').addClass('selected'); |
$(this).parents('tr').addClass('selected'); |