Lines 163-169
Link Here
|
163 |
</div> |
163 |
</div> |
164 |
[% END %] |
164 |
[% END %] |
165 |
[% IF Koha.Preference('OpacBrowseResults') %] |
165 |
[% IF Koha.Preference('OpacBrowseResults') %] |
166 |
<span class="details_link"><a href="#">Browse selected records</a></span> |
166 |
<span class="details_link"></span> |
167 |
[% END %] |
167 |
[% END %] |
168 |
</span> <!-- / .links --> |
168 |
</span> <!-- / .links --> |
169 |
</div> <!-- / #selections-toolbar --> |
169 |
</div> <!-- / #selections-toolbar --> |
Lines 681-690
$(document).ready(function(){
Link Here
|
681 |
[% END %] |
681 |
[% END %] |
682 |
enableCheckboxActions(); |
682 |
enableCheckboxActions(); |
683 |
}); |
683 |
}); |
|
|
684 |
|
685 |
$("span.details_link").html("<a href=\"#\" class=\"disabled\">"+_("Browse selected records")+"<\/a>"); |
684 |
$(".details_link a").click(function(e) { |
686 |
$(".details_link a").click(function(e) { |
685 |
if ( $(this).hasClass("disabled") == true ) { |
687 |
if ( $(this).hasClass("disabled") == true ) { |
686 |
e.preventDefault(); |
688 |
e.preventDefault(); |
687 |
alert(MSG_NO_RECORD_SELECTED); |
689 |
var checkedBoxes = $(".searchresults :checkbox:checked"); |
|
|
690 |
if ($(checkedBoxes).size() == 0) { |
691 |
alert(MSG_NO_RECORD_SELECTED); |
692 |
} else { |
693 |
alert(MSG_NEED_COOKIE_ENABLED); |
694 |
} |
688 |
return false; |
695 |
return false; |
689 |
} |
696 |
} |
690 |
}); |
697 |
}); |
691 |
- |
|
|