fix jQuery compatibility issue
This commit is contained in:
		
							parent
							
								
									0d54abd22f
								
							
						
					
					
						commit
						59eaea87ba
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
## -*- coding: utf-8 -*- \
 | 
			
		||||
<%doc>
 | 
			
		||||
Helper JavaScript for the data input form.
 | 
			
		||||
Copyright © 2009, 2010 Jan Dittberner <jan@dittberner.info>
 | 
			
		||||
Copyright © 2009, 2010, 2015 Jan Dittberner <jan@dittberner.info>
 | 
			
		||||
 | 
			
		||||
This file is part of DDPortfolio service.
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -84,7 +84,7 @@ function updateFields(data, textStatus) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
function onChangeShowAll(event) {
 | 
			
		||||
    if ($('#showall').attr('checked')) {
 | 
			
		||||
    if ($('#showall').prop('checked')) {
 | 
			
		||||
        for (var fielddiv in allfielddivs) {
 | 
			
		||||
            $(allfielddivs[fielddiv]).show();
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			@ -96,10 +96,10 @@ function onChangeShowAll(event) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
function onBlurEmail() {
 | 
			
		||||
    if ($.trim($('#email').attr('value')).length > 0) {
 | 
			
		||||
    if ($.trim($('#email').prop('value')).length > 0) {
 | 
			
		||||
        $.ajax({
 | 
			
		||||
            'url' : '${h.url(controller="showformscripts", action="fetchdddata")}',
 | 
			
		||||
            'data' : {'email' : $('#email').attr('value')},
 | 
			
		||||
            'data' : {'email' : $('#email').prop('value')},
 | 
			
		||||
            'dataType' : 'json',
 | 
			
		||||
            'success' : updateFields,
 | 
			
		||||
            'error' : function(request, textStatus, errorThrown) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue