Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed resources (png files refer by css) not found and add errorConta…

…iner, errorLabelContainer, errorWrapper to renderValidationScript and configuration for flexible top errors display.
  • Loading branch information...
commit 0fdf2176e0646a700eee990d8a9ef7287f0e9f5f 1 parent d5285c0
limcheekin authored
11 grails-app/taglib/org/grails/jquery/validation/ui/JQueryValidationUiTagLib.groovy
View
@@ -151,6 +151,11 @@ class JQueryValidationUiTagLib {
String qTipClasses = config.qTip.classes?:""
String errorClass = attrs.errorClass?:config.errorClass?:"error"
String validClass = attrs.validClass?:config.validClass?:"valid"
+ String errorContainer = attrs.errorContainer?:config.errorContainer?:"#errorContainer"
+ String errorLabelContainer = attrs.errorLabelContainer?:config.errorLabelContainer?:"div.errors ul"
+ String errorWrapper = attrs.errorWrapper?:config.errorWrapper?:"li"
+
+
def onsubmit = attrs.onsubmit ? Boolean.valueOf(attrs.onsubmit) : config.get("onsubmit", true)
def submitHandler = attrs.remove("submitHandler")
def renderErrorsOnTop = attrs.renderErrorsOnTop ? Boolean.valueOf(attrs.renderErrorsOnTop) : config.get("renderErrorsOnTop", true)
@@ -179,9 +184,9 @@ class JQueryValidationUiTagLib {
if (renderErrorsOnTop) {
renderErrorsOptions = """
-errorContainer: '#errorContainer',
-errorLabelContainer: 'div.errors ul',
-wrapper: 'li',
+errorContainer: '$errorContainer',
+errorLabelContainer: '$errorLabelContainer',
+wrapper: '$errorWrapper',
"""
} else {
renderErrorsOptions = """
36 web-app/css/qTip/jquery.qtip.css
View
@@ -113,10 +113,6 @@
background-color: #F0DE7D;
}
- .ui-tooltip .ui-tooltip-close .ui-icon{
- background: #A27D35 url('images/close.png') no-repeat 50% 50%;
- }
-
/*! Plain tooltip style */
.ui-tooltip-plain .ui-tooltip-wrapper{
border-color: black;
@@ -145,10 +141,6 @@
background-color: #f1f1f1;
}
- .ui-tooltip-light .ui-tooltip-close .ui-icon{
- background: #454545 url('images/close-light.png') no-repeat 50% 50%;
- }
-
/*! Dark tooltip style */
.ui-tooltip-dark .ui-tooltip-wrapper{
@@ -161,10 +153,6 @@
background-color: #404040;
}
- .ui-tooltip-dark .ui-tooltip-close .ui-icon{
- background: #f3f3f3 url('images/close-dark.png') no-repeat 50% 50%;
- }
-
/*! Red tooltip style */
.ui-tooltip-red .ui-tooltip-wrapper{
@@ -177,10 +165,6 @@
background-color: #F06D65;
}
- .ui-tooltip-red .ui-tooltip-close .ui-icon{
- background: #9C2F2F url('images/close-red.png') no-repeat 50% 50%;
- }
-
/*! Green tooltip style */
.ui-tooltip-green .ui-tooltip-wrapper{
@@ -193,10 +177,6 @@
background-color: #B0DE78;
}
- .ui-tooltip-green .ui-tooltip-close .ui-icon{
- background: #58792E url('images/close-green.png') no-repeat 50% 50%;
- }
-
/*! Blue tooltip style */
.ui-tooltip-blue .ui-tooltip-wrapper{
@@ -209,10 +189,6 @@
background-color: #D0E9F5;
}
- .ui-tooltip-blue .ui-tooltip-close .ui-icon{
- background: #4D9FBF url('images/close-blue.png') no-repeat 50% 50%;
- }
-
/*! Add shadows to your tooltips in: FF3+, Chrome 2+, Opera 10.6+, IE6+, Safari 2+ */
.ui-tooltip-shadow .ui-tooltip-wrapper{
@@ -288,10 +264,6 @@ div.ui-tooltip-tip{
box-shadow: 0 0 3px #333;
}
- div.ui-tooltip-youtube .ui-tooltip-close .ui-icon{
- background: black url('images/close-dark.png') no-repeat 50% 50%;
- }
-
.ui-tooltip-youtube .ui-tooltip-titlebar,
.ui-tooltip-youtube .ui-tooltip-content{
background: transparent;
@@ -331,10 +303,6 @@ div.ui-tooltip-tip{
background: transparent;
}
- .ui-tooltip-jtools .ui-tooltip-close .ui-icon{
- background: black url('images/close-dark.png') no-repeat 50% 50%;
- }
-
/* Cluetip style */
.ui-tooltip-cluetip .ui-tooltip-wrapper{
@@ -389,7 +357,3 @@ div.ui-tooltip-tip{
.ui-tooltip-tipsy .ui-tooltip-content{
padding: 6px 10px;
}
-
- .ui-tooltip-tipsy .ui-tooltip-close .ui-icon{
- background: black url('images/close-dark.png') no-repeat 50% 50%;
- }
Please sign in to comment.
Something went wrong with that request. Please try again.