I finally rebuilt it and have it working for the input-prepends in
Bootstrap 2.1.1.
I had to remove an extra parent() from each of the noted additions above,
so that the corresponding new lines are:
el.addClass('error').after(errorEl).parent().addClass('error');
el.removeClass('error').parent().removeClass('error');
I'm also using the alert class/component and clearfix class, so it'll force
better placement:
return $('<div id="'+error.id+'" class="alert alert-error
clearfix">'+error.message+'</div>');
On Friday, September 28, 2012 12:34:35 AM UTC-5, Kelly Shipp wrote:
>
>
> Could someone post the final happy.js that WORKS with Bootstrap 2.0?
> I actually had it working based on this thread, but lost the file and I
> cannot reproduce it. I cannot get it to work with 2.0. I can see the
> error div, but no error message inside it. I'm pulling my hair out on this
> one. ugh.
>
>
> On Tuesday, February 7, 2012 5:31:08 PM UTC-6, Gary Taylor wrote:
>>
>> I just switched to Happy.js and am using the changes to happy.js as
>> described above for Bootstrap 2.0, with the only exception being:
>>
>> Line 9: return $('<div id="'+error.id+'" class="alert
>> alert-error">'+error.message+'</div>');
>>
>> That's just more of a personal preference thing.
>>
>