Skip to content
This repository has been archived by the owner on Aug 15, 2021. It is now read-only.

Commit

Permalink
Change the jQuery used to find the textarea proximate to the Preview …
Browse files Browse the repository at this point in the history
…link. Fixes #6.
  • Loading branch information
tachyondecay committed Aug 26, 2012
1 parent f71bc28 commit cf5e5cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/preview_textarea.publish.js
Expand Up @@ -12,7 +12,7 @@ jQuery(document).ready(function($) {

$('a.preview-textarea-button').click(function(event) {
event.preventDefault();
var thePackage = $(this).parent().find('textarea');
var thePackage = $(this).closest('div.field').find('textarea');
if (thePackage.val().length == 0) {
$(this).after('&#160;<strong>This textarea is empty!</strong>').next().delay(5000).fadeOut('slow');
}
Expand Down

0 comments on commit cf5e5cf

Please sign in to comment.