Adding 'Mark and Continue' buttons to inventory interface. Buttons are added via js because they require js to function.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Owen Leonard 2008-03-05 19:51:26 +13:00 committed by Joshua Ferraro
parent 14cae2e3a5
commit e639717070
1 changed files with 11 additions and 1 deletions

View File

@ -14,6 +14,16 @@ $(document).ready(function(){
$(".checkboxed").unCheckCheckboxes();
return false;
});
<!-- TMPL_IF NAME="offset" -->$("#markseen").before("<input type=\"submit\" value=\"&lt;&lt; Mark Seen and Continue\" id=\"markback\" />");<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="nextoffset" -->$("#markseen").after("<input type=\"submit\" id=\"marknext\" value=\"Mark Seen and Continue &gt;&gt;\" />");<!-- /TMPL_IF -->
$("#markback").click(function(){
$(".checkboxed").find("input").filter("[name=offset]").attr("value","<!-- TMPL_VAR NAME="prevoffset" -->");
return true;
});
$("#marknext").click(function(){
$(".checkboxed").find("input").filter("[name=offset]").attr("value","<!-- TMPL_VAR NAME="nextoffset" -->");
return true;
});
});
//]]>
</script>
@ -172,7 +182,7 @@ $(document).ready(function(){
<!-- /TMPL_LOOP -->
</table>
<div style="padding : .3em 0"><a href="#" class="checkall">[Select All]</a> <a href="#" class="clearall">[Clear All]</a></div>
<input type="submit" value="Mark seen" />
<input type="submit" id="markseen" value="Mark seen" />
</form>
<!-- TMPL_IF NAME="offset" -->
<form method="post" action="/cgi-bin/koha/tools/inventory.pl">