Main Koha release repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB

[% INCLUDE '' %]
<title>Koha &rsaquo; Cataloguing &rsaquo; Framework plugin example</title>
[% INCLUDE '' %]
<body id="EXAMPLE" class="cat" style="padding:1em;">
<form name="f_pop" onsubmit="report()" action="">
<h1>EXAMPLE plugin</h1>
<p>Hi, you are looking at the result of launching the EXAMPLE plugin.</p>
<p>I received this from you:</p>
<input type="text" id="received" value="[% result | html %]" disabled />
<p>I will pass back what you type here, if you press OK.</p>
<input type="text" id="return" value="[% result | html %]" />
<input type="button" value="OK" onclick="submitMyForm();" />
<a href="#" class="cancel close">Cancel</a>
$(document).ready(function () {
// The following function just puts back the value of the input #return
// into the caller's field, referenced by index. And closes the popup.
function submitMyForm() {
$(window.opener.document).find('#[% index | html %]').val($('#return').val() );
[% INCLUDE '' %]