mjda
Well-known member
Here's what I have:
	
	
	
		
So what I'm wondering is if it's possible to somehow change the data-xf-click option to "overlay" when the text is switched from Unfeature thread to Feature thread?
What I'm wanting to do is if the user is unfeaturing a thread it will just show the 'your changes have been saved' message then also change the link text to "Feature thread". This works fine when data-xf-click="switch".
However, when someone is featuring a thread I need to show a form so some extra data can be input. This works fine when data-xf-click="overlay".
				
			
		Code:
	
	<a href="{{ link('threads/quick-feature', $thread) }}"
	class="menu-linkRow"
	data-xf-click="switch"
	data-menu-closer="true">
	<xf:if is="$thread.scu_ft_featured">
		{{ phrase('scu_ft_unfeature_thread') }}
	<xf:else />
		{{ phrase('scu_ft_feature_thread') }}
	</xf:if>
</a>
	So what I'm wondering is if it's possible to somehow change the data-xf-click option to "overlay" when the text is switched from Unfeature thread to Feature thread?
What I'm wanting to do is if the user is unfeaturing a thread it will just show the 'your changes have been saved' message then also change the link text to "Feature thread". This works fine when data-xf-click="switch".
However, when someone is featuring a thread I need to show a form so some extra data can be input. This works fine when data-xf-click="overlay".