Hi Janet,

Do you have a 1.6 environment at hand as well? If so, can you confirm my suspicion that this is an issue with compatibility on 1.8?

A few things you might try:
* Try using Chrome (this is what I developed the module with, so is most likely to work) * Try modifying the code so that all $(...) is changed to jQuery(...) and see if that fixes the issue

Let me know how you get on!

Thanks,
Mike


On 09/19/2011 03:51 AM, jriley wrote:
I'm having an issue with the Facility Data Module 2.0.1 on OpenMRS 1.8.2 .

I've made a very simple form, one numeric question. The Save button is
enabled when the page loads, but disabled for any value I put in.

I walked through the validate() function in Firebug.  The value passes all
the validation checks.  When it gets here:

$(".error").each(function(i, val) {
var errorText = $(val).text();
if (errorText&&  errorText != '') {
$("#submitButton").attr("disabled", "disabled");
}
});

errorText is not null.  The value for errorText is "The full stacktrace for
this error can usually be found in your server's error logs. Hide error "
There are no errors in the server log.

Save works if no values are entered in the text boxes.  It updates to show a
value of "no answer" , and the edit button.

Regards-
Janet



--
View this message in context: 
http://openmrs-mailing-list-archives.1560443.n2.nabble.com/Facility-Data-module-error-save-always-disabled-if-a-value-entered-tp6807513p6807513.html
Sent from the Developers mailing list archive at Nabble.com.

_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-devel-l" in the  body (not 
the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-devel-l" in the  body (not 
the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

Reply via email to