ich würde gerne das Feld "Verantwortlicher" bei einem neuen Telefon Ticket als Pflichtfeld definieren. In der AgentPhone.dtl dürfte es sich ja um diesen Teil handeln:
Code: Select all
<!-- dtl:block:ResponsibleSelection -->
<label for="NewResponsibleID">$Text{"Responsible"}:</label>
<div class="Field">
$Data{"ResponsibleOptionStrg"}
<a href="#" id="ResponsibleSelectionGetAll" class="GetAllAJAX" title="$Text{"Get all"}">$Text{"Get all"}</a>
<!--dtl:js_on_document_complete-->
<script type="text/javascript">//<![CDATA[
$('#ResponsibleSelectionGetAll').bind('click', function (Event) {
$('#ResponsibleAll').val('1'); // Needed? Why?
Core.AJAX.FormUpdate($('#NewPhoneTicket'), 'AJAXUpdate', 'ResponsibleAll', ['NewResponsibleID'], function() {
$('#NewResponsibleID').focus();
});
return false;
});
//]]></script>
<!--dtl:js_on_document_complete-->
</div>
<div class="Clear"></div>
<!-- dtl:block:ResponsibleSelection -->
Gruß
Christian