Lines 134-139
$(document).ready(function() {
Link Here
|
134 |
datesAD.not( this ).datepicker( "option", option, date ); |
134 |
datesAD.not( this ).datepicker( "option", option, date ); |
135 |
} |
135 |
} |
136 |
}); |
136 |
}); |
|
|
137 |
|
138 |
$("form.update_suggestions").on("submit", function(e){ |
139 |
var form = this; |
140 |
var action_delete_selected = $(this).find("input[value='delete']").is(":checked"); |
141 |
if ( action_delete_selected ) { |
142 |
var suggestions_to_delete = $(this).find("input[name='edit_field']:checked"); |
143 |
if ( suggestions_to_delete.length == 0 ) { |
144 |
alert(_("No suggestion to delete")); |
145 |
e.preventDefault(); |
146 |
return false; |
147 |
} else if ( suggestions_to_delete.length == 1 ) { |
148 |
if ( ! confirm(_("Are you sure you want to delete this suggestion")) ) { |
149 |
e.preventDefault(); |
150 |
return false; |
151 |
} |
152 |
} else if ( suggestions_to_delete.length > 1 ) { |
153 |
if ( ! confirm(_("Are you sure you want to delete these suggestions")) ) { |
154 |
e.preventDefault(); |
155 |
return false; |
156 |
} |
157 |
} |
158 |
} |
159 |
return true; |
160 |
}); |
137 |
}); |
161 |
}); |
138 |
// ]]> |
162 |
// ]]> |
139 |
</script> |
163 |
</script> |
Lines 460-466
h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief o
Link Here
|
460 |
|
484 |
|
461 |
[% FOREACH suggestion IN suggestions %] |
485 |
[% FOREACH suggestion IN suggestions %] |
462 |
<div id="[% suggestion.suggestiontype %]"> |
486 |
<div id="[% suggestion.suggestiontype %]"> |
463 |
<form name="f[% suggestion.suggestiontype %]" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype %]"> |
487 |
<form class="update_suggestions" name="f[% suggestion.suggestiontype %]" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype %]"> |
464 |
|
488 |
|
465 |
[% IF ( suggestion.suggestions_loop ) %] |
489 |
[% IF ( suggestion.suggestions_loop ) %] |
466 |
<p><a id="CheckAll[% suggestion.suggestiontype %]" href="#">Check all</a> | <a id="UncheckAll[% suggestion.suggestiontype %]" href="#">Uncheck all</a></p> |
490 |
<p><a id="CheckAll[% suggestion.suggestiontype %]" href="#">Check all</a> | <a id="UncheckAll[% suggestion.suggestiontype %]" href="#">Uncheck all</a></p> |
467 |
- |
|
|