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.
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
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?
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.
Sergej, what is happened with your problem?
- Status changed from New to Closed
- Resolution set to Wont fix
Also available in: Atom
PDF