diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt
index 4b7d58aabe..36edd9fa2e 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt
@@ -67,7 +67,7 @@
Print
Empty and close
- Hide window
+ Hide window
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasketform.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasketform.tt
index 7908430f76..a867f96782 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasketform.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasketform.tt
@@ -7,18 +7,27 @@
[% END %]
[% INCLUDE 'doc-head-close.inc' %]
-
+
[% IF ( email_add ) %]
[% IF ( SENT ) %]
-
Message sent
-
The cart was sent to: [% email_add | html %]
-
Close window
+
+
Message sent
+
The cart was sent to: [% email_add | html %]
+
[% END %]
[% IF ( error ) %]
-
Problem sending the cart...
+
Problem sending the cart...
[% END %]
-
+
+
+
[% ELSE %]
[% INCLUDE 'blocking_errors.inc' %]
@@ -36,9 +45,17 @@
-
+
+
[% END %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelfform.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelfform.tt
index 92546a120d..cd4462c0eb 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelfform.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelfform.tt
@@ -8,19 +8,26 @@
[% END %]
[% INCLUDE 'doc-head-close.inc' %]
-
+
[% INCLUDE 'blocking_errors.inc' %]
-[% IF ( email ) %]
+
[% IF ( email ) %]
[% IF ( SENT ) %]
Message sent
The list was sent to: [% email | html %]
-
Close window
[% END %]
[% IF ( error ) %]
-
Problem sending the list...
+
Problem sending the list...
[% END %]
-
+
+
+
[% ELSE %]
[% END %]
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 397d5f745d..d7288c9376 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt
@@ -945,7 +945,7 @@
[% IF op == 'view' %]
function sendList(){
- open(CGIBIN+'virtualshelves/sendshelf.pl?shelfid=[% shelf.shelfnumber | html %]','win_form','scrollbars=no,resizable=no,height=300,width=450,top=50,left=100');
+ openWindow( CGIBIN + 'virtualshelves/sendshelf.pl?shelfid=[% shelf.shelfnumber | html %]' );
}
$(document).ready(function() {
diff --git a/koha-tmpl/intranet-tmpl/prog/js/basket.js b/koha-tmpl/intranet-tmpl/prog/js/basket.js
index f72d58452b..5a0a21ad84 100644
--- a/koha-tmpl/intranet-tmpl/prog/js/basket.js
+++ b/koha-tmpl/intranet-tmpl/prog/js/basket.js
@@ -367,11 +367,8 @@ function quit() {
function sendBasket() {
var valCookie = readCookie(nameCookie);
var strCookie = nameParam + "=" + valCookie;
-
var loc = CGIBIN + "basket/sendbasket.pl?" + strCookie;
-
- var optWin="scrollbars=no,resizable=no,height=400,width=650,top=50,left=100";
- open(loc,"win_form",optWin);
+ openWindow( loc, "win_form" );
}
function downloadBasket() {
diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js
index 3f62a2f6c0..0c274c3a7f 100644
--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js
+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js
@@ -59,7 +59,7 @@ $(document).ready(function() {
$( e.target.hash ).find("input:text:first").focus();
});
- $(".close").click(function(){ window.close(); });
+ $(".close, .close_window").click(function(){ window.close(); });
$("#checkin_search form").preventDoubleFormSubmit();