powermail_allowCustomValidatorConfiguration.patch
| static/pi1/setup.txt (working copy) | ||
|---|---|---|
| 434 | 434 |
lib.powermailjs = COA |
| 435 | 435 |
lib.powermailjs {
|
| 436 | 436 |
wrap = (function($){|})(jQuery);
|
| 437 |
|
|
| 438 |
5 = TEXT |
|
| 439 |
5 {
|
|
| 440 |
wrap = $('.tx_powermail_pi1_form').data('powermail_validatorCustomConfiguration', {|});
|
|
| 441 |
value ( |
|
| 442 |
position: 'top right', |
|
| 443 |
offset: [-5, -20] |
|
| 444 |
) |
|
| 445 |
} |
|
| 446 |
|
|
| 437 | 447 |
10 = COA |
| 438 | 448 |
10 {
|
| 439 | 449 |
wrap = $.tools.validator.localize('en', {|});
|
| res/js/powermail_frontend.js (working copy) | ||
|---|---|---|
| 25 | 25 |
(function($) {
|
| 26 | 26 |
$(function(){
|
| 27 | 27 |
|
| 28 |
var powermail_validator = $('.tx_powermail_pi1_form').validator({
|
|
| 28 |
var powermail_validator = $('.tx_powermail_pi1_form').validator($.extend({
|
|
| 29 | 29 |
inputEvent: 'blur', |
| 30 | 30 |
grouped: true, |
| 31 | 31 |
singleError: false, |
| 32 |
position: 'top right', |
|
| 33 |
offset: [-5, -20], |
|
| 34 |
message: '<div><em/></div>' |
|
| 32 |
message: '<div><em/></div>', |
|
| 33 |
messageClass: 'tx-powermail-pi1_error', |
|
| 34 |
errorClass: 'tx-powermail-pi1_errorField' |
|
| 35 |
}, $('.tx_powermail_pi1_form').data('powermail_validatorCustomConfiguration')));
|
|
| 35 | 36 |
|
| 36 |
}); |
|
| 37 |
|
|
| 38 | 37 |
// initialize range input |
| 39 | 38 |
$(':range').rangeinput();
|
| 40 | 39 |
|