プロジェクト

全般

プロフィール

Vote #80451

未完了

Wiki preview : manage dynamic content

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Wiki_1
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
1
version_id:
0
issue_org_id:
32381
author_id:
36999
assigned_to_id:
0
comments:
2
status_id:
1
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリWiki_1 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0