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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt (-1 / +1 lines)
Lines 872-878 Link Here
872
</div>
872
</div>
873
873
874
[% MACRO jsinclude BLOCK %]
874
[% MACRO jsinclude BLOCK %]
875
    <script type="text/javascript">
875
    <script>
876
         $(document).ready(function() {
876
         $(document).ready(function() {
877
            $('#abouttabs').tabs();
877
            $('#abouttabs').tabs();
878
         });
878
         });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt (-1 / +1 lines)
Lines 150-156 Link Here
150
[% MACRO jsinclude BLOCK %]
150
[% MACRO jsinclude BLOCK %]
151
    [% Asset.js("js/desk_selection.js") | $raw %]
151
    [% Asset.js("js/desk_selection.js") | $raw %]
152
    [% Asset.js("js/register_selection.js") | $raw %]
152
    [% Asset.js("js/register_selection.js") | $raw %]
153
    <script type="text/javascript">
153
    <script>
154
        $(document).ready( function() {
154
        $(document).ready( function() {
155
            if ( document.location.hash ) {
155
            if ( document.location.hash ) {
156
                $( '#loginform' ).append( '<input name="auth_forwarded_hash" type="hidden" value="' + document.location.hash + '"/>' );
156
                $( '#loginform' ).append( '<input name="auth_forwarded_hash" type="hidden" value="' + document.location.hash + '"/>' );
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt (-1 / +1 lines)
Lines 64-70 Link Here
64
[% END %]
64
[% END %]
65
65
66
[% IF CAN_user_clubs_enroll %]
66
[% IF CAN_user_clubs_enroll %]
67
<script type="text/javascript">
67
<script>
68
function loadEnrollmentForm( id ) {
68
function loadEnrollmentForm( id ) {
69
    $("body").css("cursor", "progress");
69
    $("body").css("cursor", "progress");
70
    $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-enroll.pl?borrowernumber=[% borrowernumber | html %]&id=' + id, function() {
70
    $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-enroll.pl?borrowernumber=[% borrowernumber | html %]&id=' + id, function() {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-enroll.tt (-1 / +1 lines)
Lines 36-42 Link Here
36
    </form>
36
    </form>
37
</div>
37
</div>
38
38
39
<script type="text/javascript">
39
<script>
40
function addEnrollment() {
40
function addEnrollment() {
41
    $("body").css("cursor", "progress");
41
    $("body").css("cursor", "progress");
42
    $.ajax({
42
    $.ajax({
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt (-1 / +1 lines)
Lines 119-125 Link Here
119
[% MACRO jsinclude BLOCK %]
119
[% MACRO jsinclude BLOCK %]
120
    [% INCLUDE 'datatables.inc' %]
120
    [% INCLUDE 'datatables.inc' %]
121
121
122
    <script type="text/javascript">
122
    <script>
123
        var search = 1;
123
        var search = 1;
124
        $(document).ready(function(){
124
        $(document).ready(function(){
125
            $("#info").hide();
125
            $("#info").hide();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt (-1 / +1 lines)
Lines 156-162 Link Here
156
156
157
[% IF ( departments ) %]
157
[% IF ( departments ) %]
158
    [% MACRO jsinclude BLOCK %]
158
    [% MACRO jsinclude BLOCK %]
159
        <script type="text/javascript">
159
        <script>
160
            $(document).ready(function(){
160
            $(document).ready(function(){
161
                $( "#find_instructor" ).autocomplete({
161
                $( "#find_instructor" ).autocomplete({
162
                    source: "/cgi-bin/koha/circ/ysearch.pl",
162
                    source: "/cgi-bin/koha/circ/ysearch.pl",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (-1 / +1 lines)
Lines 236-242 Link Here
236
    </div> <!-- /.container-fluid -->
236
    </div> <!-- /.container-fluid -->
237
237
238
[% MACRO jsinclude BLOCK %]
238
[% MACRO jsinclude BLOCK %]
239
    <script type="text/javascript">
239
    <script>
240
    //<![CDATA[
240
    //<![CDATA[
241
    var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This cannot be undone.");
241
    var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This cannot be undone.");
242
        $(document).ready(function(){
242
        $(document).ready(function(){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt (-1 / +1 lines)
Lines 191-197 Link Here
191
[% MACRO jsinclude BLOCK %]
191
[% MACRO jsinclude BLOCK %]
192
    [% INCLUDE 'str/members-menu.inc' %]
192
    [% INCLUDE 'str/members-menu.inc' %]
193
    [% Asset.js("js/members-menu.js") | $raw %]
193
    [% Asset.js("js/members-menu.js") | $raw %]
194
    <script type="text/javascript">
194
    <script>
195
        $(function() {
195
        $(function() {
196
            $( "#pending_updates" ).accordion();
196
            $( "#pending_updates" ).accordion();
197
        });
197
        });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/update-child.tt (-2 / +2 lines)
Lines 51-57 Link Here
51
51
52
[% MACRO jsinclude BLOCK %]
52
[% MACRO jsinclude BLOCK %]
53
    [% INCLUDE 'datatables.inc' %]
53
    [% INCLUDE 'datatables.inc' %]
54
    <script type="text/javascript">
54
    <script>
55
55
56
        $(document).ready(function() {
56
        $(document).ready(function() {
57
            $("#catst").dataTable($.extend(true, {}, dataTablesDefaults, {
57
            $("#catst").dataTable($.extend(true, {}, dataTablesDefaults, {
Lines 65-71 Link Here
65
        });
65
        });
66
    </script>
66
    </script>
67
    [% IF ( SUCCESS ) %]
67
    [% IF ( SUCCESS ) %]
68
        <script type="text/javascript">
68
        <script>
69
            self.opener.location.href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | html %]';
69
            self.opener.location.href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | html %]';
70
            window.close();
70
            window.close();
71
        </script>
71
        </script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tt (-1 / +1 lines)
Lines 71-77 Link Here
71
[% MACRO jsinclude BLOCK %]
71
[% MACRO jsinclude BLOCK %]
72
    [% Asset.js("js/background-job-progressbar.js") | $raw %]
72
    [% Asset.js("js/background-job-progressbar.js") | $raw %]
73
    [% Asset.js("js/file-upload.js") | $raw %]
73
    [% Asset.js("js/file-upload.js") | $raw %]
74
    <script type="text/javascript">
74
    <script>
75
        var xhr;
75
        var xhr;
76
        $(document).ready(function(){
76
        $(document).ready(function(){
77
            $("#enqueuefile").hide();
77
            $("#enqueuefile").hide();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tt (-1 / +1 lines)
Lines 37-43 Link Here
37
    <div id="closewindow"><a href="#" class="btn btn-default btn-default close">Cancel</a></div>
37
    <div id="closewindow"><a href="#" class="btn btn-default btn-default close">Cancel</a></div>
38
38
39
[% MACRO jsinclude BLOCK %]
39
[% MACRO jsinclude BLOCK %]
40
  <script type="text/javascript">
40
  <script>
41
    function GetIt(aqbooksellerid,name){
41
    function GetIt(aqbooksellerid,name){
42
      opener.document.f.aqbooksellerid.value = aqbooksellerid;
42
      opener.document.f.aqbooksellerid.value = aqbooksellerid;
43
      opener.document.f.aqbooksellername.value = name;
43
      opener.document.f.aqbooksellername.value = name;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/result.tt (-1 / +1 lines)
Lines 62-68 Link Here
62
<div id="closewindow"><a class="btn btn-default btn-default close" href="#">Close</a></div>
62
<div id="closewindow"><a class="btn btn-default btn-default close" href="#">Close</a></div>
63
63
64
[% MACRO jsinclude BLOCK %]
64
[% MACRO jsinclude BLOCK %]
65
    <script type="text/javascript">
65
    <script>
66
        $(document).ready(function(){
66
        $(document).ready(function(){
67
            $(".select_title").on("click",function(e){
67
            $(".select_title").on("click",function(e){
68
                e.preventDefault();
68
                e.preventDefault();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing-preview-slip.tt (-1 / +1 lines)
Lines 39-45 Link Here
39
    <div id="closewindow" class="noprint"><a class="btn btn-default btn-default" id="print_slip" href="#"><i class="fa fa-print"></i> Print</a> <a class="btn btn-default btn-default close" href="#">Close</a></div>
39
    <div id="closewindow" class="noprint"><a class="btn btn-default btn-default" id="print_slip" href="#"><i class="fa fa-print"></i> Print</a> <a class="btn btn-default btn-default close" href="#">Close</a></div>
40
40
41
[% MACRO jsinclude BLOCK %]
41
[% MACRO jsinclude BLOCK %]
42
    <script type="text/javascript">
42
    <script>
43
        $(document).ready(function(){
43
        $(document).ready(function(){
44
            $("#print_slip").on("click",function(e){
44
            $("#print_slip").on("click",function(e){
45
                e.preventDefault();
45
                e.preventDefault();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-renew.tt (-1 / +1 lines)
Lines 79-85 Link Here
79
79
80
[% MACRO jsinclude BLOCK %]
80
[% MACRO jsinclude BLOCK %]
81
    [% INCLUDE 'calendar.inc' %]
81
    [% INCLUDE 'calendar.inc' %]
82
    <script type="text/javascript">
82
    <script>
83
        $(document).ready(function(){
83
        $(document).ready(function(){
84
            $(".close").on("click", function(e){
84
            $(".close").on("click", function(e){
85
                e.preventDefault();
85
                e.preventDefault();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt (-1 / +1 lines)
Lines 299-305 Link Here
299
    [% INCLUDE 'datatables.inc' %]
299
    [% INCLUDE 'datatables.inc' %]
300
    [% Asset.js("js/pages/batchMod.js") | $raw %]
300
    [% Asset.js("js/pages/batchMod.js") | $raw %]
301
    [% Asset.js("js/browser.js") | $raw %]
301
    [% Asset.js("js/browser.js") | $raw %]
302
    <script type="text/javascript">
302
    <script>
303
        // Prepare array of all column headers, incrementing each index by
303
        // Prepare array of all column headers, incrementing each index by
304
        // two to accommodate control and title columns
304
        // two to accommodate control and title columns
305
        var allColumns = new Array([% FOREACH item_header_loo IN item_header_loop %]'[% loop.count | html %]'[% UNLESS ( loop.last ) %],[% END %][% END %]);
305
        var allColumns = new Array([% FOREACH item_header_loo IN item_header_loop %]'[% loop.count | html %]'[% UNLESS ( loop.last ) %],[% END %][% END %]);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt (-1 / +1 lines)
Lines 9-15 Link Here
9
[% Asset.js("js/cataloging.js") | $raw %]
9
[% Asset.js("js/cataloging.js") | $raw %]
10
[% INCLUDE 'datatables.inc' %]
10
[% INCLUDE 'datatables.inc' %]
11
[% Asset.js("js/pages/batchMod.js") | $raw %]
11
[% Asset.js("js/pages/batchMod.js") | $raw %]
12
<script type="text/javascript">
12
<script>
13
//<![CDATA[
13
//<![CDATA[
14
14
15
// Prepare array of all column headers, incrementing each index by
15
// Prepare array of all column headers, incrementing each index by
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt (-2 / +1 lines)
Lines 290-296 Link Here
290
    [% Asset.js("js/tools-menu.js") | $raw %]
290
    [% Asset.js("js/tools-menu.js") | $raw %]
291
    [% INCLUDE 'datatables.inc' %]
291
    [% INCLUDE 'datatables.inc' %]
292
    [% INCLUDE 'calendar.inc' %]
292
    [% INCLUDE 'calendar.inc' %]
293
    <script type="text/javascript">
293
    <script>
294
        function checkForm() {
294
        function checkForm() {
295
            if ( $('#uploadbarcodes').val() && $('#barcodelist').val() ) {
295
            if ( $('#uploadbarcodes').val() && $('#barcodelist').val() ) {
296
                alert(_("You have uploaded a barcode file and scanned barcodes at the same time. Please choose one of the two options."));
296
                alert(_("You have uploaded a barcode file and scanned barcodes at the same time. Please choose one of the two options."));
297
- 

Return to bug 27561