|
@@ -459,7 +459,12 @@
|
|
|
$(this).parent().toggleClass('edit');
|
|
|
if($(this).parent().is('.edit')) {
|
|
|
$(this).parent().siblings('.edit').removeClass('edit');
|
|
|
- $(this).parent().find('[contenteditable]').first().focus();
|
|
|
+ if($(this).parent().find('[contenteditable]').length) {
|
|
|
+ $(this).parent().find('[contenteditable]').first().focus();
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $(this).parent().find('textarea:visible').first().focus();
|
|
|
+ }
|
|
|
}
|
|
|
return false;
|
|
|
})
|