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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (+14 lines)
Lines 18-23 Link Here
18
        $("#loading").hide();
18
        $("#loading").hide();
19
    });
19
    });
20
	 $(document).ready(function() {
20
	 $(document).ready(function() {
21
var unsaved = false;
22
23
$(":input").change(function(){ //trigers change in all input fields including text type
24
    unsaved = true;
25
});
26
27
function unloadPage(){ 
28
    if(unsaved){
29
        return "You have unsaved changes on this page. Do you want to leave this page and discard your changes or stay on this page?";
30
    }
31
}
32
33
window.onbeforeunload = unloadPage;
34
21
        $('#addbibliotabs').tabs().bind('show.ui-tabs', function(e, ui) {
35
        $('#addbibliotabs').tabs().bind('show.ui-tabs', function(e, ui) {
22
			$("#"+ui.panel.id+" input:eq(0)").focus();
36
			$("#"+ui.panel.id+" input:eq(0)").focus();
23
		});
37
		});
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-1 / +3 lines)
Lines 102-107 $(document).ready(function () { Link Here
102
    });
102
    });
103
    [% END %]
103
    [% END %]
104
});
104
});
105
106
$('#barcode').preventDoubleFormSubmit()
107
105
//]]>
108
//]]>
106
</script>
109
</script>
107
</head>
110
</head>
108
- 

Return to bug 15597