# --
# CustomerDialogFooter.dtl - provides CustomerDialogFooter HTML for the CustomerTicketProcess.pm
# Copyright (C) 2003-2012 OTRS AG, http://otrs.com/
# --
# $Id: CustomerActivityDialogFooter.dtl,v 1.3 2012/11/20 15:30:10 mh Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --
                    </fieldset>
                </div>
<!-- dtl:block:Footer -->        
                <div class="PopupFooter">
                    <button class="Primary" id="$QData{"ButtonID"}" accesskey="g" title="$Text{"$Data{"ButtonTitle"}"} (g)" type="submit" value="$Text{"$Data{"ButtonText"}"}">$Text{"$Data{"ButtonText"}"}</button>
<!-- dtl:block:SubmitAdviceText -->
                    <span class="AdviceText">$QData{"AdviceText"}</span>
<!-- dtl:block:SubmitAdviceText -->
                </div>
<!-- dtl:block:Footer -->
            </div>
        </form>
    </div>
</div>
<!-- dtl:block:ParentReload -->
<!--dtl:js_on_document_complete-->
<script type="text/javascript">//<![CDATA[
window.opener.Core.UI.Popup.FirePopupEvent('Reload');
//]]></script>
<!--dtl:js_on_document_complete-->
<!-- dtl:block:ParentReload -->

<!-- dtl:js_on_document_complete -->
<script type="text/javascript">//<![CDATA[
$('select').each(function() {
    if ($(this).find('option').length == 1) {
        $(this).attr('disabled', 'disabled');
        $('<input type="hidden" id="' + $(this).attr('id') + '" name="' + $(this).attr('name') + '" value="' + $(this).val() + '" />').insertAfter($(this));
    }
});
Core.Form.Validate.Init();
//]]></script>
<!-- dtl:js_on_document_complete -->

<!-- dtl:block:FooterJS -->
<script type="text/javascript">
    $Data{"Bindings"}
</script>
<!-- dtl:block:FooterJS -->
