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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt (-2 / +5 lines)
Lines 10-20 Link Here
10
    [% INCLUDE 'doc-head-open.inc' %]
10
    [% INCLUDE 'doc-head-open.inc' %]
11
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Layouts &rsaquo; [% IF ( layout_id ) %]Edit ([% layout_id %])[% ELSE %]New[% END %]</title>
11
    <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Layouts &rsaquo; [% IF ( layout_id ) %]Edit ([% layout_id %])[% ELSE %]New[% END %]</title>
12
    [% INCLUDE 'doc-head-close.inc' %]
12
    [% INCLUDE 'doc-head-close.inc' %]
13
    <script type="text/JavaScript" language="JavaScript">
13
    <script type="text/JavaScript">
14
        //<![CDATA[
14
        //<![CDATA[
15
            $(document).ready(function() {
15
            $(document).ready(function() {
16
                $("input[name='layout_choice']").change( function() { layout_method() } );
16
                $("input[name='layout_choice']").change( function() { layout_method() } );
17
                layout_method();
17
                layout_method();
18
                $("#font").on("change",function(){
19
                     checkOblique();
20
                });
18
            });
21
            });
19
            function layout_method() {
22
            function layout_method() {
20
                if( $("input[name='layout_choice']:checked").val() == 'layout_string' ) {
23
                if( $("input[name='layout_choice']:checked").val() == 'layout_string' ) {
Lines 173-179 Link Here
173
                                </li>
176
                                </li>
174
                                <li>
177
                                <li>
175
                                    <label for="font">Font: </label>
178
                                    <label for="font">Font: </label>
176
                                    <select name="font" id="font" onchange="checkOblique()">
179
                                    <select name="font" id="font">
177
                                        [% FOREACH font_type IN font_types %]
180
                                        [% FOREACH font_type IN font_types %]
178
                                        [% IF ( font_type.selected ) %]
181
                                        [% IF ( font_type.selected ) %]
179
                                        <option value="[% font_type.type %]" selected="selected">[% font_type.name %]</option>
182
                                        <option value="[% font_type.type %]" selected="selected">[% font_type.name %]</option>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt (-20 / +8 lines)
Lines 6-12 Link Here
6
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'calendar.inc' %]
7
[% INCLUDE 'calendar.inc' %]
8
<script type="text/javascript">
8
<script type="text/javascript">
9
// <![CDATA[
9
    $(document).ready(function(){
10
        $("#delete_patrons_form").on("submit",function(){
11
            return checkForm( this );
12
        });
13
    });
10
        /**
14
        /**
11
         *  checkForm(form)
15
         *  checkForm(form)
12
         *  This function check the form is correctly filled.
16
         *  This function check the form is correctly filled.
Lines 20-26 Link Here
20
              }
24
              }
21
              if((form.checkbox[1].checked)){
25
              if((form.checkbox[1].checked)){
22
                  if(!(form.date2.value)){
26
                  if(!(form.date2.value)){
23
                      alert(_("please enter a date!"));
27
                      alert(_("Please enter a date!"));
24
                      return false;
28
                      return false;
25
                  }
29
                  }
26
              }
30
              }
Lines 30-51 Link Here
30
              }
34
              }
31
              return true;
35
              return true;
32
          }
36
          }
33
34
        /**
35
         *  checkForm2(form)
36
         *  This function check the form2 is correctly filled.
37
         */
38
          function checkForm2(form) {
39
              return true;
40
          }
41
42
          $(document).ready(function() {
43
              $('#selectlibrary').find("input:submit").hide();
44
              $('#branch').change(function() {
45
                $('#selectlibrary').submit();
46
              });
47
          });
48
     // ]]>
49
</script>
37
</script>
50
38
51
</head>
39
</head>
Lines 90-96 Link Here
90
    <p>This tool allows you to delete patrons and anonymize checkout history. For deleting patrons, any combination of limits can be used.</p>
78
    <p>This tool allows you to delete patrons and anonymize checkout history. For deleting patrons, any combination of limits can be used.</p>
91
</div>
79
</div>
92
<div id="step1">
80
<div id="step1">
93
    <form name="f1" onsubmit="return checkForm(this);" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post">
81
    <form name="f1" id="delete_patrons_form" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post">
94
    <fieldset>
82
    <fieldset>
95
    <legend>Delete patrons</legend>
83
    <legend>Delete patrons</legend>
96
        <h3><input id="checkborrower" type="checkbox" name="checkbox" value="borrower" /><label for="checkborrower"> Verify you want to delete patrons</label></h3>
84
        <h3><input id="checkborrower" type="checkbox" name="checkbox" value="borrower" /><label for="checkborrower"> Verify you want to delete patrons</label></h3>
Lines 167-173 Link Here
167
[% IF step == 2 %]
155
[% IF step == 2 %]
168
<!-- STEP 2 START -->
156
<!-- STEP 2 START -->
169
<div id="step2">
157
<div id="step2">
170
        <form name="f2" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post" onsubmit="return checkForm2(this);">
158
        <form name="f2" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post">
171
    <fieldset>
159
    <fieldset>
172
        <legend>Warnings</legend>
160
        <legend>Warnings</legend>
173
        <ul>
161
        <ul>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt (-3 / +6 lines)
Lines 86-91 $(document).ready(function(){ Link Here
86
            $(".checkboxed").unCheckCheckboxes();
86
            $(".checkboxed").unCheckCheckboxes();
87
            return false;
87
            return false;
88
        });
88
        });
89
    $("#inventory_form").on("submit",function(){
90
        return checkForm();
91
    });
89
});
92
});
90
//]]>
93
//]]>
91
</script>
94
</script>
Lines 120-126 $(document).ready(function(){ Link Here
120
    [% END %]
123
    [% END %]
121
       [% UNLESS op %]
124
       [% UNLESS op %]
122
    <div class="yui-g">
125
    <div class="yui-g">
123
    <form method="post" action="/cgi-bin/koha/tools/inventory.pl" enctype="multipart/form-data" onsubmit="return checkForm()">
126
    <form method="post" id="inventory_form" action="/cgi-bin/koha/tools/inventory.pl" enctype="multipart/form-data">
124
        <fieldset class="rows">
127
        <fieldset class="rows">
125
            <legend>Use a barcode file</legend>
128
            <legend>Use a barcode file</legend>
126
     <ol>
129
     <ol>
Lines 231-237 $(document).ready(function(){ Link Here
231
    <input type="hidden" name="datelastseen" value="[% datelastseen %]" />
234
    <input type="hidden" name="datelastseen" value="[% datelastseen %]" />
232
235
233
    [% UNLESS compareinv2barcd %]
236
    [% UNLESS compareinv2barcd %]
234
      <div><a href="#" class="checkall">[Select all]</a> <a href="#" class="clearall">[Clear all]</a></div>
237
      <div><a href="#" class="checkall"><i class="fa fa-check"></i> Select all</a> <a href="#" class="clearall"><i class="fa fa-remove"></i> Clear all</a></div>
235
    [% END %]
238
    [% END %]
236
239
237
    <table id="inventoryt">
240
    <table id="inventoryt">
Lines 299-305 $(document).ready(function(){ Link Here
299
    </table>
302
    </table>
300
    <div class="spacer"></div>
303
    <div class="spacer"></div>
301
    [% UNLESS compareinv2barcd %]
304
    [% UNLESS compareinv2barcd %]
302
      <div style="padding : .3em 0"><a href="#" class="checkall">[Select all]</a> <a href="#" class="clearall">[Clear all]</a></div>
305
      <div style="padding : .3em 0"><a href="#" class="checkall"><i class="fa fa-check"></i> Select all</a> <a href="#" class="clearall"><i class="fa fa-remove"></i> Clear all</a></div>
303
      <input type="submit" id="markseenandquit" value="Mark seen and quit" />
306
      <input type="submit" id="markseenandquit" value="Mark seen and quit" />
304
      <input type="submit" value="Mark seen and continue &gt;&gt;" id="markseenandcontinuebutton" />
307
      <input type="submit" value="Mark seen and continue &gt;&gt;" id="markseenandcontinuebutton" />
305
      <input type="submit" value="Continue without marking &gt;&gt;" id="continuewithoutmarkingbutton" class="submit" />
308
      <input type="submit" value="Continue without marking &gt;&gt;" id="continuewithoutmarkingbutton" class="submit" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt (-1 / +10 lines)
Lines 27-32 $(document).ready(function() { Link Here
27
      });
27
      });
28
    [% END %]
28
    [% END %]
29
29
30
    $("#newmodule").on("change",function(){
31
        if( $("#branch").val() == ""){
32
            var branchcode = "*";
33
        } else {
34
            var branchcode = $("#branch").val();
35
        }
36
        window.location.href = "/cgi-bin/koha/tools/letter.pl?op=add_form&module=" + $(this).val() + "&branchcode=" + branchcode;
37
    });
38
30
    $("#submit_form").click( function(event) {
39
    $("#submit_form").click( function(event) {
31
        event.preventDefault();
40
        event.preventDefault();
32
        var at_least_one_exists = 0;
41
        var at_least_one_exists = 0;
Lines 291-297 $(document).ready(function() { Link Here
291
				<label for="module">Koha module:</label>
300
				<label for="module">Koha module:</label>
292
				<input type="hidden" name="oldmodule" value="[% module %]" />
301
				<input type="hidden" name="oldmodule" value="[% module %]" />
293
                [% IF adding  %]
302
                [% IF adding  %]
294
                  <select name="module" id="module" onchange="javascript:window.location.href = unescape(window.location.pathname)+'?op=add_form&amp;module='+this.value+'&amp;content='+window.document.forms['Aform'].elements['content'].value;">
303
                  <select name="module" id="newmodule">
295
                [% ELSE %]
304
                [% ELSE %]
296
                  <select name="module" id="module">
305
                  <select name="module" id="module">
297
                [% END %]
306
                [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt (-2 / +5 lines)
Lines 138-144 Link Here
138
[% BLOCK newsearch %]
138
[% BLOCK newsearch %]
139
    <form id="newsearch">
139
    <form id="newsearch">
140
        <fieldset class="action">
140
        <fieldset class="action">
141
            <button onclick="SubmitMe('new'); return false;">New search</button>
141
            <button id="new_search">New search</button>
142
        </fieldset>
142
        </fieldset>
143
    </form>
143
    </form>
144
    [% IF plugin %]
144
    [% IF plugin %]
Lines 337-342 $(document).ready(function() { Link Here
337
        var record_id = $(this).data("record-id");
337
        var record_id = $(this).data("record-id");
338
        DeleteEntry( record_id );
338
        DeleteEntry( record_id );
339
    });
339
    });
340
    $("#new_search").on("click",function(e){
341
        e.preventDefault();
342
        SubmitMe('new');
343
    });
340
});
344
});
341
//]]>
345
//]]>
342
</script>
346
</script>
343
- 

Return to bug 17083