Project

General

Profile

Actions

Defect #7330

closed

javascript_include_tag not work for filename with multi dots

Added by Sergei Danilov almost 14 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Start date:
2011-01-14
Due date:
% Done:

0%

Estimated time:
Resolution:
Wont fix
Affected version:

Description

With

https://github.com/friflaj/redmine_tagging/blob/master/lib/tagging_hooks.rb

Line 40

tags += javascript_include_tag 'jquery-1.4.2.min.js', :plugin => 'redmine_tagging'

Redmine fail to load jquery-1.4.2.min.js and redmine_tagging plugin not work properly

After renaming "jquery-1.4.2.min.js" to "jquery142min.js" and changing code to

tags += javascript_include_tag 'jquery142min.js', :plugin => 'redmine_tagging'

plugin works fine.

Redmine 1.0.1.devel.4083

Actions #1

Updated by Jean-Philippe Lang almost 14 years ago

Redmine fail to load jquery-1.4.2.min.js and redmine_tagging plugin not work properly

With current trunk, it generates a correct script tag:

javascript_include_tag 'jquery-1.4.2.min.js', :plugin => 'redmine_tagging'
=> <script src="/plugin_assets/redmine_tagging/javascripts/jquery-1.4.2.min.js" type="text/javascript"></script>

What does your broken script tag look like?

Actions #2

Updated by Sergei Danilov almost 14 years ago


With current trunk, it generates a correct script tag:

javascript_include_tag 'jquery-1.4.2.min.js', :plugin => 'redmine_tagging'
=> <script src="/plugin_assets/redmine_tagging/javascripts/jquery-1.4.2.min.js" type="text/javascript"></script>

Javascript look like:

<script src="/plugin_assets/redmine_tagging/javascripts/jquery-1.4.2.min.js?1294998561" type="text/javascript"></script>

All javasripts in html pages look like

<script src="<javascript file>?<magic number>" type="text/javascript"></script>

What is the significance of <magic number>?

Javascript NOT broken. It's just not inject in html page.

Actions #3

Updated by Малъ Скрылёвъ about 13 years ago

Sergej, what is happened with your problem?

Actions #4

Updated by Go MAEDA about 4 years ago

  • Status changed from New to Closed
  • Resolution set to Wont fix

Sergei Danilov wrote:

Javascript look like:
[...]

All javasripts in html pages look like

[...]

What is the significance of <magic number>?

It is not a problem. Please see the following page:
What does this random number do: /javascripts/rails.js?1271798101 - Stack Overflow

Actions

Also available in: Atom PDF