File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
- <% if @project.nil? or @project.module_enabled?(:gtt_print) %>
1
+ <% if User.current.allowed_to?(:view_gtt_print, @project) and @issue.present? %>
2
2
<%= content_tag(:h3, l(:label_gtt_print_title)) %>
3
3
<form action ="<%= Setting . plugin_redmine_gtt_print [ 'default_print_server' ] %> " method ="post " class ="print_box ">
4
4
< select name ="template ">
Original file line number Diff line number Diff line change 1
1
$ ( function ( ) {
2
- var server = ( $ ( 'form.print_box' ) . attr ( 'action' ) ) . replace ( / \/ ? $ / , '/' ) ;
2
+ if ( $ ( 'form.print_box' ) . length > 0 ) {
3
+ var server = $ ( 'form.print_box' ) . attr ( 'action' ) . replace ( / \/ ? $ / , '/' ) ;
3
4
4
- if ( server ) {
5
- $ . getJSON ( server + "print/apps.json" , function ( data ) {
5
+ $ . getJSON ( "https://print.***REMOVED***/print/apps.json" , function ( data ) {
6
6
$ . each ( data , function ( key , value ) {
7
7
// "default" profile does not really work for some reason
8
8
if ( value != "default" ) {
@@ -23,4 +23,8 @@ $(function() {
23
23
24
24
return false ;
25
25
} ) ;
26
+
27
+ // var requestPrint = function () {
28
+
29
+ // };
26
30
} ) ;
You can’t perform that action at this time.
0 commit comments