Changeset 465 for ether_megapoli/trunk
- Timestamp:
- 04/04/12 16:21:50 (12 years ago)
- Location:
- ether_megapoli/trunk/web
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ether_megapoli/trunk/web/backoffice/mco-script.jsp
r464 r465 48 48 if( !this.verifyFields() ) 49 49 { 50 var parametersUrl = "code=" + $( "#code" ).val() + "&email=" + $( "#email" ).val() + "&state=" + this.selectStates.getValue() + "&type=" + this.selectTypes.getValue() +51 "&title=" + $( "#titleRequest" ).val() + "&informations=" + $( "#informations" ).val();50 var parametersUrl = "code=" + stripVowelAccent( $( "#code" ).val() ) + "&email=" + $( "#email" ).val() + "&state=" + this.selectStates.getValue() + "&type=" + this.selectTypes.getValue() + 51 "&title=" + stripVowelAccent( $( "#titleRequest" ).val() ) + "&informations=" + stripVowelAccent( $( "#informations" ).val() ); 52 52 var request = $.ajax( { 53 53 url: "backoffice?methodName=addRequest&" + parametersUrl, … … 80 80 if( this.request && !this.verifyFields() ) 81 81 { 82 var parametersUrl = "id=" + this.request.id + "&code=" + $( "#code" ).val() + "&email=" + $( "#email" ).val() +83 "&type=" + this.selectTypes.getValue() + "&state=" + this.selectStates.getValue() + "&title=" + $( "#titleRequest" ).val() + "&informations=" + $( "#informations" ).val();82 var parametersUrl = "id=" + this.request.id + "&code=" + stripVowelAccent( $( "#code" ).val() ) + "&email=" + $( "#email" ).val() + 83 "&type=" + this.selectTypes.getValue() + "&state=" + this.selectStates.getValue() + "&title=" + stripVowelAccent( $( "#titleRequest" ).val() ) + "&informations=" + stripVowelAccent( $( "#informations" ).val() ); 84 84 $.ajax( { 85 85 url: "backoffice?methodName=modifyRequest&" + parametersUrl, -
ether_megapoli/trunk/web/resources/js/classesForJQuery/etherHelper.js
r311 r465 96 96 $( pageContainer ).html( Math.max( 1, page ) ); 97 97 } 98 99 function stripVowelAccent( str ) 100 { 101 var s = str; 102 103 var rExps = [ /[\xC0-\xC2]/g, /[\xE0-\xE2]/g, 104 /[\xC8-\xCA]/g, /[\xE8-\xEB]/g, 105 /[\xCC-\xCE]/g, /[\xEC-\xEE]/g, 106 /[\xD2-\xD4]/g, /[\xF2-\xF4]/g, 107 /[\xD9-\xDB]/g, /[\xF9-\xFB]/g ]; 108 109 var repChar = ['A','a','E','e','I','i','O','o','U','u']; 110 111 for( var i = 0; i < rExps.length; i++ ) 112 s = s.replace( rExps[i], repChar[i] ); 113 114 return s; 115 } -
ether_megapoli/trunk/web/src/com/ether/ControllerBackoffice.java
r464 r465 388 388 @Nullable @ParamName(ParameterConstants.PARAMETER_TITLE) final String title, 389 389 @Nullable @ParamName(ParameterConstants.PARAMETER_INFORMATIONS) final String informations ) 390 throws WebException , NoSuchAlgorithmException390 throws WebException 391 391 { 392 392 try
Note: See TracChangeset
for help on using the changeset viewer.