Пример #1
0
 /**
  * @see parent
  */
 public function _afterToHtml($html)
 {
     $html .= '
       <script type="text/javascript">
         function confirmAndSubmit() {
           var canSubmit = true;
           $$("#bronto_support_terms").each(function(elem) {
             if (elem.value === "0") {
               canSubmit = confirm("You must agree to Bronto\'s Terms of Service in the Registration section. You agree to the Terms by pressing \\"OK\\".");
               if (canSubmit) {
                 elem.value = "1";
               }
             }
           });
           if (canSubmit) {
             configForm.submit();
           }
         }
       </script>';
     return parent::_afterToHtml($html);
 }