Project

General

Profile

Actions

Patch #32381

open

Wiki preview : manage dynamic content

Added by Jérôme BATAILLE over 4 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Wiki
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

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){
...
Actions #1

Updated by Jérôme BATAILLE over 4 years ago

Sorry, wrong syntax in description

  • original javascript :
  $('#content').on('click', 'div.jstTabs a.tab-preview', function(event){
  ...
  • Enhancement :
  $('body').on('click', '#content div.jstTabs a.tab-preview', function(event){
  ...
Actions #2

Updated by Jérôme BATAILLE over 4 years ago

It is useful in plugins that have dynamic popups like popup windows.

Thanks a lot in advance to study this simple enhancement.

Actions #3

Updated by Go MAEDA almost 2 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF