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

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-search-history.tmpl (-1 / +2 lines)
Lines 4-9 Link Here
4
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
4
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
5
<script type="text/JavaScript" language="JavaScript">
5
<script type="text/JavaScript" language="JavaScript">
6
//<![CDATA[
6
//<![CDATA[
7
	var MSG_CONFIRM_DELETE_HISTORY = _("Are you sure you want to delete your search history?");
7
         $(document).ready(function() {
8
         $(document).ready(function() {
8
		// We show table ordered by descending dates by default
9
		// We show table ordered by descending dates by default
9
		// (so that the more recent query is shown first)
10
		// (so that the more recent query is shown first)
Lines 32-38 Link Here
32
<div class="yui-b"><div class="yui-g">
33
<div class="yui-b"><div class="yui-g">
33
        <div id="searchhistory" class="container">
34
        <div id="searchhistory" class="container">
34
	<h1>Search history</h1>
35
	<h1>Search history</h1>
35
	<!-- TMPL_IF NAME="recentSearches" --><form action="/cgi-bin/koha/opac-search-history.pl" method="get"><input type="hidden" name="action" value="delete" /><input type="submit" class="deleteshelf" value="Delete your search history" onclick="return confirm(_('Are you sure you want to delete your search history?'));" /></form><!-- TMPL_ELSE --><!-- TMPL_IF NAME="previousSearches" --><form action="/cgi-bin/koha/opac-search-history.pl" method="get"><input type="hidden" name="action" value="delete" /><input type="submit" class="deleteshelf" value="Delete your search history" onclick="return confirm(_('Are you sure you want to delete your search history?'));" /></form><!-- /TMPL_IF --><!-- /TMPL_IF -->
36
	<!-- TMPL_IF NAME="recentSearches" --><form action="/cgi-bin/koha/opac-search-history.pl" method="get"><input type="hidden" name="action" value="delete" /><input type="submit" class="deleteshelf" value="Delete your search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" /></form><!-- TMPL_ELSE --><!-- TMPL_IF NAME="previousSearches" --><form action="/cgi-bin/koha/opac-search-history.pl" method="get"><input type="hidden" name="action" value="delete" /><input type="submit" class="deleteshelf" value="Delete your search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" /></form><!-- /TMPL_IF --><!-- /TMPL_IF -->
36
37
37
	    <!-- TMPL_IF NAME="recentSearches" -->
38
	    <!-- TMPL_IF NAME="recentSearches" -->
38
	    <table class="historyt">
39
	    <table class="historyt">
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl (-6 / +7 lines)
Lines 4-10 Link Here
4
<script type="text/JavaScript" language="JavaScript">
4
<script type="text/JavaScript" language="JavaScript">
5
//<![CDATA[
5
//<![CDATA[
6
var MSG_NO_TAG_SPECIFIED = _("No tag was specified.");
6
var MSG_NO_TAG_SPECIFIED = _("No tag was specified.");
7
7
var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
8
var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to delete this list?");
8
$.tablesorter.addParser({
9
$.tablesorter.addParser({
9
    id: 'articles', 
10
    id: 'articles', 
10
    is: function(s) {return false;  }, 
11
    is: function(s) {return false;  }, 
Lines 225-231 $(function() { Link Here
225
                         <input type="hidden" name="display" value="privateshelves" />
226
                         <input type="hidden" name="display" value="privateshelves" />
226
                    <!-- /TMPL_IF -->
227
                    <!-- /TMPL_IF -->
227
                         <input type="hidden" value="1" name="DEL-<!-- TMPL_VAR NAME="shelfnumber" -->"/>
228
                         <input type="hidden" value="1" name="DEL-<!-- TMPL_VAR NAME="shelfnumber" -->"/>
228
                         <input type="submit" class="deleteshelf" value="Delete List" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));"/>
229
                         <input type="submit" class="deleteshelf" value="Delete List" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"/>
229
                      </form> <!-- /TMPL_IF -->
230
                      </form> <!-- /TMPL_IF -->
230
231
231
		      <a class="print tag_hides" href="opac-shelves.pl" onclick="print(); return false;">Print List</a>
232
		      <a class="print tag_hides" href="opac-shelves.pl" onclick="print(); return false;">Print List</a>
Lines 304-315 $(function() { Link Here
304
              <!-- TMPL_IF NAME="itemsloop" -->
305
              <!-- TMPL_IF NAME="itemsloop" -->
305
                <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
306
                <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
306
                <input type="hidden" name="modifyshelfcontents" value="1" />
307
                <input type="hidden" name="modifyshelfcontents" value="1" />
307
                <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" /><input type="submit" value="Remove Selected Items" class="icon delete" onclick="return confirmDelete(_('Are you sure you want to remove these items from the list?'))" />
308
                <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" /><input type="submit" value="Remove Selected Items" class="icon delete" onclick="return confirmDelete(MSG_REMOVE_FROM_LIST)" />
308
              <!-- TMPL_ELSE -->
309
              <!-- TMPL_ELSE -->
309
                <form method="post" action="opac-shelves.pl">
310
                <form method="post" action="opac-shelves.pl">
310
                  <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelfnumber" -->" value="1" />
311
                  <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelfnumber" -->" value="1" />
311
                  <input type="hidden" name="shelves" value="1" />
312
                  <input type="hidden" name="shelves" value="1" />
312
                  <input type="submit" class="icon delete" value="Delete this List" onclick="return confirmDelete(_('Are you sure you want to delete this List?'))" />
313
                  <input type="submit" class="icon delete" value="Delete this List" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST)" />
313
              <!-- /TMPL_IF -->
314
              <!-- /TMPL_IF -->
314
                </form>
315
                </form>
315
            <!-- /TMPL_IF -->
316
            <!-- /TMPL_IF -->
Lines 411-417 $(function() { Link Here
411
                                    <input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" value="1" />
412
                                    <input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" value="1" />
412
                                    <input type="submit" class="confirm" value="Confirm" />
413
                                    <input type="submit" class="confirm" value="Confirm" />
413
                              <!-- TMPL_ELSE -->
414
                              <!-- TMPL_ELSE -->
414
                                    <input type="submit" class="deleteshelf" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));" value="Delete" />
415
                                    <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
415
                              <!-- /TMPL_IF -->
416
                              <!-- /TMPL_IF -->
416
                                </form>
417
                                </form>
417
                            <!-- /TMPL_IF -->&nbsp;
418
                            <!-- /TMPL_IF -->&nbsp;
Lines 477-483 $(function() { Link Here
477
                                  <input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" value="1" />
478
                                  <input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" value="1" />
478
                                  <input type="submit" class="confirm" value="Confirm" />
479
                                  <input type="submit" class="confirm" value="Confirm" />
479
                                <!-- TMPL_ELSE -->
480
                                <!-- TMPL_ELSE -->
480
                                  <input type="submit" class="deleteshelf" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));" value="Delete" />
481
                                  <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
481
                                <!-- /TMPL_IF -->
482
                                <!-- /TMPL_IF -->
482
                              </form>
483
                              </form>
483
                            <!-- /TMPL_IF -->&nbsp;
484
                            <!-- /TMPL_IF -->&nbsp;
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl (-2 / +2 lines)
Lines 7-12 Link Here
7
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
7
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
8
<script type="text/JavaScript" language="JavaScript">
8
<script type="text/JavaScript" language="JavaScript">
9
//<![CDATA[
9
//<![CDATA[
10
var MSG_CONFIRM_DELETE_HOLD = _("Are you sure you want to cancel this hold?");
10
$.tablesorter.addParser({
11
$.tablesorter.addParser({
11
    id: 'articles', 
12
    id: 'articles', 
12
    is: function(s) {return false;  }, 
13
    is: function(s) {return false;  }, 
Lines 399-405 $.tablesorter.addParser({ Link Here
399
		<!-- TMPL_IF NAME="cancelable" -->
400
		<!-- TMPL_IF NAME="cancelable" -->
400
			<form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
401
			<form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
401
			<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
402
			<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
402
			<input type="submit" name="submit" class="icon delete cancel" value="Cancel" onclick="return confirmDelete('Are you sure you want to cancel this hold?');" /></form>
403
			<input type="submit" name="submit" class="icon delete cancel" value="Cancel" onclick="return confirmDelete(MSG_CONFIRM_DELETE_HOLD);" /></form>
403
		<!-- TMPL_ELSE -->
404
		<!-- TMPL_ELSE -->
404
			&nbsp;
405
			&nbsp;
405
		<!-- /TMPL_IF -->
406
		<!-- /TMPL_IF -->
406
- 

Return to bug 4504