Vote #80451
未完了Wiki preview : manage dynamic content
0%
説明
Hi,
- In public/javascripts/application.js The wiki toolbar preview event is written like this :
$('#content').on('click', 'div.jstTabs a.tab-preview', function(event){
...
- If we re-write it like this, dynamic added wiki content preview (like the one in modal windows) will work :
$('body').on('click', '#content.scrum div.jstTabs a.tab-preview', function(event){ ...
journals
Sorry, wrong syntax in description
* original javascript :
<pre><code class="javascript">
$('#content').on('click', 'div.jstTabs a.tab-preview', function(event){
...
</code></pre>
* Enhancement :
<pre><code class="javascript">
$('body').on('click', '#content div.jstTabs a.tab-preview', function(event){
...
</code></pre>
--------------------------------------------------------------------------------
It is useful in plugins that have dynamic popups like popup windows.
Thanks a lot in advance to study this simple enhancement.
--------------------------------------------------------------------------------