Correcting check for empty shlef name to prevent
javascript error.
Also correcting unescaped ampersand.
---
.../prog/en/modules/virtualshelves/shelves.tt | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt
b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt
index d7a34a1..d4f8ec3 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt
@@ -95,7 +95,7 @@ function placeHold () {
var _alertString="";
var alertString2;
- if(f.addshelf.value.length ==0){
+ if($("#shelfname").val() == ""){
_alertString += _("- You must enter a List Name") +
"\n";
}
@@ -349,7 +349,7 @@ function placeHold () {
<tr><th>List Name</th><th>Contents</th><th>Sort
by</th><th>Type</th><th>Options</th></tr>
[% FOREACH shelveslooppri IN shelveslooppriv %]
[% IF ( shelveslooppri.toggle ) %]<tr class="highlight">[%
ELSE %]<tr>[% END %]
- <td><a href="shelves.pl?[% IF ( shelveslooppri.showprivateshelves )
%]display=privateshelves&[% END %]viewshelf=[% shelveslooppri.shelf
%]&shelfoff=[% shelfoff %]">[% shelveslooppri.shelfname |html %]</a></td>
+ <td><a href="shelves.pl?[% IF ( shelveslooppri.showprivateshelves )
%]display=privateshelves&[% END %]viewshelf=[% shelveslooppri.shelf
%]&shelfoff=[% shelfoff %]">[% shelveslooppri.shelfname |html %]</a></td>
<td>[% shelveslooppri.count %] item(s)</td>
<td>[% IF ( shelveslooppri.authorsort ) %]Author[% ELSIF (
shelveslooppri.yearsort ) %]Year[% ELSE %]Title[% END %]</td>
<td>[% IF ( shelveslooppri.viewcategory1 ) %]Private[% END %]
--
1.7.3
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/