View | Details | Raw Unified | Return to bug 16602
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tt (-3 / +16 lines)
Lines 10-15 var xhr; Link Here
10
$(document).ready(function(){
10
$(document).ready(function(){
11
    $("#enqueuefile").hide();
11
    $("#enqueuefile").hide();
12
    $("#processfile").hide();
12
    $("#processfile").hide();
13
    $("#upload_file").on("click",function(){
14
        StartUpload();
15
    });
16
    $("#queueformsubmit").on("click",function(){
17
        var processfile = document.getElementById("processfile");
18
        return CheckForm( processfile );
19
    });
20
    $("#mainformsubmit").on("click",function(){
21
        var enqueuefile = document.getElementById("enqueuefile");
22
        return CheckForm( enqueuefile );
23
    });
13
});
24
});
14
25
15
function StartUpload() {
26
function StartUpload() {
Lines 89-99 function CheckForm(f) { Link Here
89
   <h2>Upload offline circulation data</h2>
100
   <h2>Upload offline circulation data</h2>
90
101
91
   <div id="fileuploadform">
102
   <div id="fileuploadform">
92
     <form method="post" action="[% SCRIPT_NAME %]" enctype="multipart/form-data">
103
     <form method="post" action="/cgi-bin/koha/offline_circ/process_koc.pl" enctype="multipart/form-data" class="validated">
93
		<fieldset class="brief">
104
		<fieldset class="brief">
94
       <ol><li><label for="fileToUpload">Choose .koc file: </label>
105
       <ol><li><label for="fileToUpload">Choose .koc file: </label>
95
       <input type="file" id="fileToUpload" size="50" name="fileToUpload" /></li></ol>
106
            <input class="required" required="required" type="file" id="fileToUpload" size="50" name="fileToUpload" />
96
       <fieldset class="action"><input type="button" class="submit" value="Upload file" onclick="StartUpload();return false;" /></fieldset>
107
            <span class="required">Required</span>
108
       </li></ol>
109
       <fieldset class="action"><input type="button" class="submit" value="Upload file" id="upload_file" /></fieldset>
97
	   </fieldset>
110
	   </fieldset>
98
     </form>
111
     </form>
99
     <div id="fileuploadstatus" style="display:none">Upload progress: <progress id="fileuploadprogress" min="0" max="100" value="0"></progress> <span class="fileuploadpercent">0</span>%</div>
112
     <div id="fileuploadstatus" style="display:none">Upload progress: <progress id="fileuploadprogress" min="0" max="100" value="0"></progress> <span class="fileuploadpercent">0</span>%</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt (-3 / +8 lines)
Lines 20-25 Link Here
20
            var list = $(this).data("list-name");
20
            var list = $(this).data("list-name");
21
            return confirmDelete( _("Are you sure you want to delete the list %s?").format(list) );
21
            return confirmDelete( _("Are you sure you want to delete the list %s?").format(list) );
22
        });
22
        });
23
        $(".print_cards").on("click",function(e){
24
            e.preventDefault();
25
            var patron_list_id = $(this).data("patron_list_id");
26
            GB_showCenter(_("Print patron cards from list"), "/cgi-bin/koha/patroncards/print.pl?patronlist_id=" + patron_list_id, 400, 800);
27
        });
23
    });
28
    });
24
//]]>
29
//]]>
25
</script>
30
</script>
Lines 71-88 Link Here
71
                                    <li><a class="delete_patron" href="/cgi-bin/koha/patron_lists/delete.pl?patron_list_id=[% l.patron_list_id %]" data-list-name="[% l.name %]"><i class="fa fa-trash"></i> Delete list</a></li>
76
                                    <li><a class="delete_patron" href="/cgi-bin/koha/patron_lists/delete.pl?patron_list_id=[% l.patron_list_id %]" data-list-name="[% l.name %]"><i class="fa fa-trash"></i> Delete list</a></li>
72
                                    [% IF ( l.patron_list_patrons_rs.count ) %]
77
                                    [% IF ( l.patron_list_patrons_rs.count ) %]
73
                                        <li class="divider"></li>
78
                                        <li class="divider"></li>
74
                                        <li><a href="#" onclick='GB_showCenter(_("Print patron cards from list"), "/cgi-bin/koha/patroncards/print.pl?patronlist_id=[% l.patron_list_id %]", 400, 800);return false;'><i class="fa fa-print"></i> Print patron cards</a></li>
79
                                        <li><a href="#" class="print_cards" data-patron_list_id="[% l.patron_list_id %]"><i class="fa fa-print"></i> Print patron cards</a></li>
75
                                        [% IF CAN_user_tools_edit_patrons %]
80
                                        [% IF CAN_user_tools_edit_patrons %]
76
                                            <li>
81
                                            <li>
77
                                                <a href="/cgi-bin/koha/tools/modborrowers.pl?patron_list_id=[% l.patron_list_id %]&op=show">
82
                                                <a href="/cgi-bin/koha/tools/modborrowers.pl?patron_list_id=[% l.patron_list_id %]&op=show">
78
                                                    <i class="fa fa-pencil"></i> Batch edit patrons</i>
83
                                                    <i class="fa fa-pencil"></i> Batch edit patrons
79
                                                </a>
84
                                                </a>
80
                                            </li>
85
                                            </li>
81
                                        [% END %]
86
                                        [% END %]
82
                                        [% IF CAN_user_tools_delete_anonymize_patrons %]
87
                                        [% IF CAN_user_tools_delete_anonymize_patrons %]
83
                                            <li>
88
                                            <li>
84
                                                <a href="/cgi-bin/koha/tools/cleanborrowers.pl?step=2&patron_list_id=[% l.patron_list_id %]&checkbox=borrower">
89
                                                <a href="/cgi-bin/koha/tools/cleanborrowers.pl?step=2&patron_list_id=[% l.patron_list_id %]&checkbox=borrower">
85
                                                    <i class="fa fa-trash"></i> Batch delete patrons</i>
90
                                                    <i class="fa fa-trash"></i> Batch delete patrons
86
                                                </a>
91
                                                </a>
87
                                            </li>
92
                                            </li>
88
                                        [% END %]
93
                                        [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt (-2 / +7 lines)
Lines 15-20 var allColumns = new Array([% FOREACH item_header_loo IN item_header_loop %]'[% Link Here
15
for( x=0; x<allColumns.length; x++ ){
15
for( x=0; x<allColumns.length; x++ ){
16
  allColumns[x] = Number(allColumns[x]) + 2;
16
  allColumns[x] = Number(allColumns[x]) + 2;
17
}
17
}
18
$(document).ready(function(){
19
    $("#mainformsubmit").on("click",function(){
20
        return submitBackgroundJob(this.form);
21
    });
22
});
18
//]]>
23
//]]>
19
</script>
24
</script>
20
<!--[if IE]>
25
<!--[if IE]>
Lines 137-145 for( x=0; x<allColumns.length; x++ ){ Link Here
137
		</div>
142
		</div>
138
        <input type="checkbox" name="del_records" id="del_records" /> <label for="del_records">Delete records if no items remain.</label>
143
        <input type="checkbox" name="del_records" id="del_records" /> <label for="del_records">Delete records if no items remain.</label>
139
        [% IF too_many_items %]
144
        [% IF too_many_items %]
140
            <input type="submit" name="mainformsubmit" value="Delete ALL submitted items" onclick="return submitBackgroundJob(this.form);" />
145
            <input type="submit" id="mainformsubmit" name="mainformsubmit" value="Delete ALL submitted items" />
141
        [% ELSE %]
146
        [% ELSE %]
142
            <input type="submit" name="mainformsubmit" value="Delete selected items" onclick="return submitBackgroundJob(this.form);" />
147
            <input type="submit" id="mainformsubmit" name="mainformsubmit" value="Delete selected items" />
143
        [% END %]
148
        [% END %]
144
149
145
		<a href="/cgi-bin/koha/tools/batchMod.pl?del=1" class="cancel">Cancel</a>
150
		<a href="/cgi-bin/koha/tools/batchMod.pl?del=1" class="cancel">Cancel</a>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt (-3 / +5 lines)
Lines 31-37 $(document).ready(function(){ Link Here
31
          $("#"+row).html("");
31
          $("#"+row).html("");
32
      }
32
      }
33
  });
33
  });
34
34
    $("#mainformsubmit").on("click",function(){
35
        return submitBackgroundJob(this.form);
36
    });
35
});
37
});
36
//]]>
38
//]]>
37
</script>
39
</script>
Lines 235-242 $(document).ready(function(){ Link Here
235
       <div id="jobstatus">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div>
237
       <div id="jobstatus">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div>
236
       <div id="jobfailed"></div>
238
       <div id="jobfailed"></div>
237
   </div>
239
   </div>
238
   <input type="submit" name="mainformsubmit" value="Save" onclick="return submitBackgroundJob(this.form);" />
240
   <input type="submit" id="mainformsubmit" value="Save" />
239
         <a href="/cgi-bin/koha/tools/batchMod.pl" class="cancel" onclick="history.back();return false;">Cancel</a>
241
         <a href="/cgi-bin/koha/tools/batchMod.pl" class="cancel">Cancel</a>
240
    </fieldset>
242
    </fieldset>
241
</div>
243
</div>
242
[% ELSE %]
244
[% ELSE %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt (-4 / +10 lines)
Lines 191-197 Link Here
191
            dateChanged($(this).datepicker("getDate"));
191
            dateChanged($(this).datepicker("getDate"));
192
        },
192
        },
193
        defaultDate: new Date("[% keydate %]")
193
        defaultDate: new Date("[% keydate %]")
194
    });
194
        });
195
        $(".hidePanel").on("click",function(){
196
            if( $(this).hasClass("showHoliday") ){
197
                hidePanel("showHoliday");
198
            } else {
199
                hidePanel("newHoliday");
200
            }
201
        })
195
    });
202
    });
196
//]]>
203
//]]>
197
</script>
204
</script>
Lines 309-315 td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl Link Here
309
            </ol>
316
            </ol>
310
            <fieldset class="action">
317
            <fieldset class="action">
311
                <input type="submit" name="submit" value="Save" />
318
                <input type="submit" name="submit" value="Save" />
312
                <a href="#" class="cancel" onclick=" hidePanel('showHoliday');">Cancel</a>
319
                <a href="#" class="cancel hidePanel showHoliday">Cancel</a>
313
            </fieldset>
320
            </fieldset>
314
            </fieldset>
321
            </fieldset>
315
        </form>
322
        </form>
Lines 380-386 td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl Link Here
380
                </li></ol>
387
                </li></ol>
381
                <fieldset class="action">
388
                <fieldset class="action">
382
                    <input type="submit" name="submit" value="Save" />
389
                    <input type="submit" name="submit" value="Save" />
383
                    <a href="#" class="cancel" onclick=" hidePanel('newHoliday');">Cancel</a>
390
                    <a href="#" class="cancel hidePanel newHoliday">Cancel</a>
384
                </fieldset>
391
                </fieldset>
385
                </fieldset>
392
                </fieldset>
386
         </form>
393
         </form>
387
- 

Return to bug 16602