mirror of
				https://github.com/e107inc/e107.git
				synced 2025-10-24 19:26:21 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			564 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			564 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| if (!defined('e107_INIT')) { exit; }
 | |
| 
 | |
| // #647 - temporary solution until a global/common clone method is created which replaces duplicateHTML()
 | |
| if(!e107::isInstalled('poll'))
 | |
| {
 | |
| 	return;
 | |
| }
 | |
| $poll_active = false;
 | |
| 
 | |
| if(e107::getPlugPref('forum', 'poll') != '255')
 | |
| {
 | |
| 	$poll_active = true;
 | |
| }
 | |
| 
 | |
| if(defset('e_CURRENT_PLUGIN') == "forum" && e107::isInstalled('poll') && $poll_active)
 | |
| {
 | |
| 	e107::js("footer-inline",  "
 | |
| 
 | |
| 	    $('#addoption').click(function () {
 | |
| 	      $('#poll_answer').clone().appendTo('#pollsection').find('input[type=text]').val('');
 | |
| 	    });
 | |
| 	");
 | |
| }
 | |
| 
 | |
| 
 |