diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
index 782a76db7e..94b341c2c9 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
+++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
@@ -1995,15 +1995,13 @@ fieldset.rows+h3 {clear:both;padding-top:.5em;}
z-index: 1;
width: 300px;
}
-.import_export_options li{
- display: block;
- list-style: none;
- padding-top: 10px;
+.import_export_options fieldset.rows li label {
+ width : 16em;
}
-.import_export_options .import_export_close {
- cursor: pointer;
- text-decoration: underline;
+.form_import fieldset.rows li label {
+ width : auto;
}
+
.import_export_options .export_ok {
padding: 10;
background: #E3E3E3 none;
@@ -2011,7 +2009,7 @@ fieldset.rows+h3 {clear:both;padding-top:.5em;}
margin-left: 20px;
border: none;
}
-.import_export_options .import_ok {
+.import_export_options {
padding: 10;
background: #E3E3E3 none;
cursor: pointer;
@@ -2025,9 +2023,6 @@ fieldset.rows+h3 {clear:both;padding-top:.5em;}
padding: inherit;
background: none;
}
-.li_close_import_export {
- text-align: right;
-}
.importing {
position: relative;
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt
index eb826a4136..aa9159e2d5 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt
@@ -67,6 +67,7 @@ $(document).ready(function() {
if (!importing) {
$('.import_export_options').fadeOut('fast');
$("body").css("cursor", "auto");
+ return false;
}
});
$('.input_import').val("");
@@ -75,9 +76,7 @@ $(document).ready(function() {
if (matches && matches.length > 1) {
alert(_("Error importing the framework ") + decodeURIComponent(matches[1]));
}
- });
-
- $(function() {
+
$('input.input_import').change( function() {
var filename = $(this).val();
if ( ! /(?:\.csv|\.sql|\.ods|\.xml)$/.test(filename)) {
@@ -95,12 +94,12 @@ $(document).ready(function() {
var id = $(this).attr('id');
var obj = $('#' + id + ' input:file');
if (/(?:\.csv|\.sql|\.ods|\.xml)$/.test(obj.val())) {
- if (confirm('Do you really want to import the framework fields/subfields (will overwrite current configuration, for safety reasons please make before an export to have a backup file)?')) {
+ if (confirm(_("Do you really want to import the framework fields and subfields? This will overwrite the current configuration. For safety reasons please use the export option to make a backup"))) {
var frameworkcode = $('#' + id + ' input:hidden[name=frameworkcode]').val();
- $('#importing_' + frameworkcode).find("span").html("Importing " + frameworkcode + " from " + obj.val().replace(new RegExp("^.+[/\\\\]"),"") + "");
+ $('#importing_' + frameworkcode).find("span").html(_("Importing to framework:")+"" + frameworkcode + "
" +_("Importing from file:")+"" + obj.val().replace(new RegExp("^.+[/\\\\]"),"") + "");
if (navigator.userAgent.toLowerCase().indexOf('msie') != -1) {
var timestamp = new Date().getTime();
- $('#importing_' + frameworkcode).find("img").attr('src', '/intranet-tmpl/prog/img/loading.gif' + '?' +timestamp);
+ $('#importing_' + frameworkcode).find("img").attr('src', '/intranet-tmpl/prog/img/loading-small.gif' + '?' +timestamp);
}
$('#importing_' + frameworkcode).css('display', 'block');
if (navigator.userAgent.toLowerCase().indexOf('firefox') == -1) $("body").css("cursor", "progress");
@@ -116,8 +115,6 @@ $(document).ready(function() {
return false;
});
});
-
-
@@ -200,15 +197,17 @@ $(document).ready(function() {