Only use edit overlay if available for editing comments. We will need a plone 5 alternative
This commit is contained in:
		
							parent
							
								
									da84d4d642
								
							
						
					
					
						commit
						68665b6f2b
					
				@ -4,7 +4,8 @@ Changelog
 | 
			
		||||
2.4.3 (unreleased)
 | 
			
		||||
------------------
 | 
			
		||||
 | 
			
		||||
- Nothing changed yet.
 | 
			
		||||
- Only use edit overlay if available for editing comments
 | 
			
		||||
  [vangheem]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
2.4.2 (2015-05-04)
 | 
			
		||||
 | 
			
		||||
@ -189,12 +189,14 @@ require([  // jshint ignore:line
 | 
			
		||||
        /**********************************************************************
 | 
			
		||||
         * Edit a comment
 | 
			
		||||
         **********************************************************************/
 | 
			
		||||
	$('form[name="edit"]').prepOverlay({
 | 
			
		||||
        cssclass: 'overlay-edit-comment',
 | 
			
		||||
        width: '60%',
 | 
			
		||||
		subtype: 'ajax',
 | 
			
		||||
		filter: '#content>*'
 | 
			
		||||
	});
 | 
			
		||||
    if($.fn.prepOverlay){
 | 
			
		||||
    	$('form[name="edit"]').prepOverlay({
 | 
			
		||||
            cssclass: 'overlay-edit-comment',
 | 
			
		||||
            width: '60%',
 | 
			
		||||
    		subtype: 'ajax',
 | 
			
		||||
    		filter: '#content>*'
 | 
			
		||||
    	});
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
        /**********************************************************************
 | 
			
		||||
         * Delete a comment and its answers.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user