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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt (-2 / +1 lines)
Lines 79-85 Link Here
79
<script>
79
<script>
80
$( document ).ready(function() {
80
$( document ).ready(function() {
81
81
82
    var MSG_MIN_THRESHOLD = _("Minimum amount needed by this service is %s");
83
    var txtActivefilter = _("Filter paid transactions");
82
    var txtActivefilter = _("Filter paid transactions");
84
    var txtInactivefilter = _("Show all transactions");
83
    var txtInactivefilter = _("Show all transactions");
85
84
Lines 169-175 $( document ).ready(function() { Link Here
169
                            help.addClass('hide');
168
                            help.addClass('hide');
170
                        } else {
169
                        } else {
171
                            $(self).prop('disabled', true);
170
                            $(self).prop('disabled', true);
172
                            help.html(MSG_MIN_THRESHOLD.format(parseInt(threshold,10).toFixed(2))).removeClass('hide');
171
                            help.html( _("Minimum amount needed by this service is %s").format(parseInt(threshold,10).toFixed(2)) ).removeClass('hide');
173
                        }
172
                        }
174
                        resolve();
173
                        resolve();
175
                    })
174
                    })
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-7 / +3 lines)
Lines 501-510 Link Here
501
[% INCLUDE 'calendar.inc' %]
501
[% INCLUDE 'calendar.inc' %]
502
[% INCLUDE 'datatables.inc' %]
502
[% INCLUDE 'datatables.inc' %]
503
<script>
503
<script>
504
    var MSG_NO_ITEM_SELECTED = _("Expecting a specific item selection.");
505
    var MSG_EMPTY_START_DATE = _("Hold start date should be filled.");
506
    var MSG_EMPTY_END_DATE   = _("Hold expiration date should be filled.");
507
508
    $(document).ready(function() {
504
    $(document).ready(function() {
509
505
510
        $(".toggle_unholdable").click(function(e){
506
        $(".toggle_unholdable").click(function(e){
Lines 670-682 Link Here
670
                }
666
                }
671
667
672
                if( $(".holddatefrom").prop('required') && $("#from"+ biblioNum).val() == '' ) {
668
                if( $(".holddatefrom").prop('required') && $("#from"+ biblioNum).val() == '' ) {
673
                    alert(MSG_EMPTY_START_DATE);
669
                    alert( _("Hold start date should be filled.") );
674
                    badBib = biblioNum;
670
                    badBib = biblioNum;
675
                    if( $("#from"+biblioNum).parent(":hidden").length ) $("#toggle-hold-options-"+biblioNum).trigger('click');
671
                    if( $("#from"+biblioNum).parent(":hidden").length ) $("#toggle-hold-options-"+biblioNum).trigger('click');
676
                    $("#from"+biblioNum).siblings('.flatpickr_wrapper').find('.flatpickr-input').trigger('focus');
672
                    $("#from"+biblioNum).siblings('.flatpickr_wrapper').find('.flatpickr-input').trigger('focus');
677
                    return false;
673
                    return false;
678
                } else if( $(".futuredate").prop('required') && $("#to"+ biblioNum).val() == '' ) {
674
                } else if( $(".futuredate").prop('required') && $("#to"+ biblioNum).val() == '' ) {
679
                    alert(MSG_EMPTY_END_DATE);
675
                    alert( _("Hold expiration date should be filled.") );
680
                    badBib = biblioNum;
676
                    badBib = biblioNum;
681
                    if( $("#to"+biblioNum).parent(":hidden").length ) $("#toggle-hold-options-"+biblioNum).trigger('click');
677
                    if( $("#to"+biblioNum).parent(":hidden").length ) $("#toggle-hold-options-"+biblioNum).trigger('click');
682
                    $("#to"+biblioNum).siblings('.flatpickr_wrapper').find('.flatpickr-input').trigger('focus');
678
                    $("#to"+biblioNum).siblings('.flatpickr_wrapper').find('.flatpickr-input').trigger('focus');
Lines 688-694 Link Here
688
                    // Find the selected copy
684
                    // Find the selected copy
689
                    var item = $(".checkitem_" + biblioNum + ":checked");
685
                    var item = $(".checkitem_" + biblioNum + ":checked");
690
                    if ($(item).size() == 0) {
686
                    if ($(item).size() == 0) {
691
                        alert(MSG_NO_ITEM_SELECTED);
687
                        alert( _("Expecting a specific item selection.") );
692
                        badBib = biblioNum;
688
                        badBib = biblioNum;
693
                        return false;
689
                        return false;
694
                    } else {
690
                    } else {
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-search-history.tt (-3 / +1 lines)
Lines 291-298 Link Here
291
[% INCLUDE 'datatables.inc' %]
291
[% INCLUDE 'datatables.inc' %]
292
[% INCLUDE 'columns_settings.inc' %]
292
[% INCLUDE 'columns_settings.inc' %]
293
<script>
293
<script>
294
295
    var MSG_CONFIRM_DELETE_HISTORY = _("Are you sure you want to delete selected search history entries?");
296
    $(document).ready(function() {
294
    $(document).ready(function() {
297
        // We show table ordered by descending dates by default
295
        // We show table ordered by descending dates by default
298
        // (so that the more recent query is shown first)
296
        // (so that the more recent query is shown first)
Lines 343-349 Link Here
343
            if ( $(ids).length < 1 ) {
341
            if ( $(ids).length < 1 ) {
344
                return false;
342
                return false;
345
            }
343
            }
346
            if ( confirm(MSG_CONFIRM_DELETE_HISTORY) ) {
344
            if ( confirm( _("Are you sure you want to delete selected search history entries?") ) ) {
347
                $(form).submit();
345
                $(form).submit();
348
            }
346
            }
349
            return false;
347
            return false;
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-4 lines)
Lines 837-846 Link Here
837
    [% Asset.js("js/openlibrary.js") | $raw %]
837
    [% Asset.js("js/openlibrary.js") | $raw %]
838
[% END %]
838
[% END %]
839
<script>
839
<script>
840
var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
841
var MSG_REMOVE_ONE_FROM_LIST = _("Are you sure you want to remove this item from the list?");
842
var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to delete this list?");
843
var MSG_CONFIRM_REMOVE_SHARE = _("Are you sure you want to remove this share?");
844
840
845
[% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'OPACHoldRequests' ) == 1 ) ) %]
841
[% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'OPACHoldRequests' ) == 1 ) ) %]
846
    function holdSelections() {
842
    function holdSelections() {
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-tags.tt (-3 / +1 lines)
Lines 202-211 Link Here
202
    }
202
    }
203
203
204
    $(document).ready(function(){
204
    $(document).ready(function(){
205
        var MSG_DELETE_TAG = _("Are you sure you want to delete the selected tag(s)?");
206
        $(".delete").on("click", function(e){
205
        $(".delete").on("click", function(e){
207
            if ( checkboxesChecked() == 1 ) {
206
            if ( checkboxesChecked() == 1 ) {
208
                return confirmDelete(MSG_DELETE_TAG);
207
                return confirmDelete( _("Are you sure you want to delete the selected tag(s)?") );
209
            } else {
208
            } else {
210
                alert(_("Please select a tag to delete."));
209
                alert(_("Please select a tag to delete."));
211
                e.preventDefault();
210
                e.preventDefault();
212
- 

Return to bug 34082