dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #19541
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8562: Stop using annoying red icon for validation
------------------------------------------------------------
revno: 8562
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-10-17 22:29:56 +0200
message:
Stop using annoying red icon for validation
modified:
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/widgets.css
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/widgets.css'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/widgets.css 2012-10-17 11:58:35 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/widgets.css 2012-10-17 20:29:56 +0000
@@ -418,16 +418,7 @@
span.error
{
- background: url('../../images/invalid.png') no-repeat;
- padding-left: 16px;
- margin-left: .3em;
-}
-
-span.valid
-{
- background: url('../../images/valid.png') no-repeat;
- padding-left: 16px;
- margin-left: .3em;
+ color: red;
}
#cluetip-inner
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js 2012-10-16 14:11:54 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js 2012-10-17 20:29:56 +0000
@@ -1185,7 +1185,10 @@
errorElement:"span",
beforeValidateHandler: beforeValidateHandler,
submitHandler: submitHandler,
- rules: rules
+ rules: rules,
+ errorPlacement: function(error, element) {
+ element.parent("td").append("<br>").append(error);
+ }
});
$("#" + formId + " input").each(function(n) {