|
Lines 9-14
Link Here
|
| 9 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
9 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
| 10 |
[% INCLUDE 'datatables.inc' %] |
10 |
[% INCLUDE 'datatables.inc' %] |
| 11 |
<script type="text/javascript"> |
11 |
<script type="text/javascript"> |
|
|
12 |
function validateForm(){ |
| 13 |
var x=document.forms["Aform"]["category"].value; |
| 14 |
if (x==null || x=="") { |
| 15 |
alert("Category is missing"); |
| 16 |
return false; |
| 17 |
} |
| 18 |
} |
| 19 |
</script> |
| 20 |
<script type="text/javascript"> |
| 12 |
//<![CDATA[ |
21 |
//<![CDATA[ |
| 13 |
$(document).ready(function() { |
22 |
$(document).ready(function() { |
| 14 |
$("#table_authorized_values").dataTable($.extend(true, {}, dataTablesDefaults, { |
23 |
$("#table_authorized_values").dataTable($.extend(true, {}, dataTablesDefaults, { |
|
Lines 73-79
$(document).ready(function() {
Link Here
|
| 73 |
|
82 |
|
| 74 |
[% IF ( action_modify ) %]<div class="note"><strong>NOTE:</strong> If you change an authorized value, existing records using it won't be updated.</div>[% END %] |
83 |
[% IF ( action_modify ) %]<div class="note"><strong>NOTE:</strong> If you change an authorized value, existing records using it won't be updated.</div>[% END %] |
| 75 |
|
84 |
|
| 76 |
<form action="[% script_name %]" name="Aform" method="post"> |
85 |
<form action="[% script_name %]" name="Aform" onsubmit="return validateForm()" method="post"> |
| 77 |
<input type="hidden" name="op" value="add_validate" /> |
86 |
<input type="hidden" name="op" value="add_validate" /> |
| 78 |
<input type="hidden" name="offset" value="[% offset %]" /> |
87 |
<input type="hidden" name="offset" value="[% offset %]" /> |
| 79 |
<fieldset class="rows"><ol> |
88 |
<fieldset class="rows"><ol> |
| 80 |
- |
|
|