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 498-507 Link Here
498
[% INCLUDE 'calendar.inc' %]
498
[% INCLUDE 'calendar.inc' %]
499
[% INCLUDE 'datatables.inc' %]
499
[% INCLUDE 'datatables.inc' %]
500
<script>
500
<script>
501
    var MSG_NO_ITEM_SELECTED = _("Expecting a specific item selection.");
502
    var MSG_EMPTY_START_DATE = _("Hold start date should be filled.");
503
    var MSG_EMPTY_END_DATE   = _("Hold expiration date should be filled.");
504
505
    $(document).ready(function() {
501
    $(document).ready(function() {
506
502
507
        $(".toggle_unholdable").click(function(e){
503
        $(".toggle_unholdable").click(function(e){
Lines 667-679 Link Here
667
                }
663
                }
668
664
669
                if( $(".holddatefrom").prop('required') && $("#from"+ biblioNum).val() == '' ) {
665
                if( $(".holddatefrom").prop('required') && $("#from"+ biblioNum).val() == '' ) {
670
                    alert(MSG_EMPTY_START_DATE);
666
                    alert( _("Hold start date should be filled.") );
671
                    badBib = biblioNum;
667
                    badBib = biblioNum;
672
                    if( $("#from"+biblioNum).parent(":hidden").length ) $("#toggle-hold-options-"+biblioNum).trigger('click');
668
                    if( $("#from"+biblioNum).parent(":hidden").length ) $("#toggle-hold-options-"+biblioNum).trigger('click');
673
                    $("#from"+biblioNum).siblings('.flatpickr_wrapper').find('.flatpickr-input').trigger('focus');
669
                    $("#from"+biblioNum).siblings('.flatpickr_wrapper').find('.flatpickr-input').trigger('focus');
674
                    return false;
670
                    return false;
675
                } else if( $(".futuredate").prop('required') && $("#to"+ biblioNum).val() == '' ) {
671
                } else if( $(".futuredate").prop('required') && $("#to"+ biblioNum).val() == '' ) {
676
                    alert(MSG_EMPTY_END_DATE);
672
                    alert( _("Hold expiration date should be filled.") );
677
                    badBib = biblioNum;
673
                    badBib = biblioNum;
678
                    if( $("#to"+biblioNum).parent(":hidden").length ) $("#toggle-hold-options-"+biblioNum).trigger('click');
674
                    if( $("#to"+biblioNum).parent(":hidden").length ) $("#toggle-hold-options-"+biblioNum).trigger('click');
679
                    $("#to"+biblioNum).siblings('.flatpickr_wrapper').find('.flatpickr-input').trigger('focus');
675
                    $("#to"+biblioNum).siblings('.flatpickr_wrapper').find('.flatpickr-input').trigger('focus');
Lines 685-691 Link Here
685
                    // Find the selected copy
681
                    // Find the selected copy
686
                    var item = $(".checkitem_" + biblioNum + ":checked");
682
                    var item = $(".checkitem_" + biblioNum + ":checked");
687
                    if ($(item).size() == 0) {
683
                    if ($(item).size() == 0) {
688
                        alert(MSG_NO_ITEM_SELECTED);
684
                        alert( _("Expecting a specific item selection.") );
689
                        badBib = biblioNum;
685
                        badBib = biblioNum;
690
                        return false;
686
                        return false;
691
                    } else {
687
                    } else {
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-search-history.tt (-3 / +1 lines)
Lines 287-294 Link Here
287
[% INCLUDE 'datatables.inc' %]
287
[% INCLUDE 'datatables.inc' %]
288
[% INCLUDE 'columns_settings.inc' %]
288
[% INCLUDE 'columns_settings.inc' %]
289
<script>
289
<script>
290
291
    var MSG_CONFIRM_DELETE_HISTORY = _("Are you sure you want to delete selected search history entries?");
292
    $(document).ready(function() {
290
    $(document).ready(function() {
293
        // We show table ordered by descending dates by default
291
        // We show table ordered by descending dates by default
294
        // (so that the more recent query is shown first)
292
        // (so that the more recent query is shown first)
Lines 339-345 Link Here
339
            if ( $(ids).length < 1 ) {
337
            if ( $(ids).length < 1 ) {
340
                return false;
338
                return false;
341
            }
339
            }
342
            if ( confirm(MSG_CONFIRM_DELETE_HISTORY) ) {
340
            if ( confirm( _("Are you sure you want to delete selected search history entries?") ) ) {
343
                $(form).submit();
341
                $(form).submit();
344
            }
342
            }
345
            return false;
343
            return false;
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-4 lines)
Lines 830-839 Link Here
830
    [% Asset.js("js/openlibrary.js") | $raw %]
830
    [% Asset.js("js/openlibrary.js") | $raw %]
831
[% END %]
831
[% END %]
832
<script>
832
<script>
833
var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
834
var MSG_REMOVE_ONE_FROM_LIST = _("Are you sure you want to remove this item from the list?");
835
var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to delete this list?");
836
var MSG_CONFIRM_REMOVE_SHARE = _("Are you sure you want to remove this share?");
837
833
838
[% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'OPACHoldRequests' ) == 1 ) ) %]
834
[% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'OPACHoldRequests' ) == 1 ) ) %]
839
    function holdSelections() {
835
    function holdSelections() {
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-tags.tt (-3 / +1 lines)
Lines 200-209 Link Here
200
    }
200
    }
201
201
202
    $(document).ready(function(){
202
    $(document).ready(function(){
203
        var MSG_DELETE_TAG = _("Are you sure you want to delete the selected tag(s)?");
204
        $(".delete").on("click", function(e){
203
        $(".delete").on("click", function(e){
205
            if ( checkboxesChecked() == 1 ) {
204
            if ( checkboxesChecked() == 1 ) {
206
                return confirmDelete(MSG_DELETE_TAG);
205
                return confirmDelete( _("Are you sure you want to delete the selected tag(s)?") );
207
            } else {
206
            } else {
208
                alert(_("Please select a tag to delete."));
207
                alert(_("Please select a tag to delete."));
209
                e.preventDefault();
208
                e.preventDefault();
210
- 

Return to bug 34082