<commit_before><?php
/***********************************************************
  ..

  Reference:
  http://agiletoolkit.org/doc/ref

==ATK4===================================================
   This file is part of Agile Toolkit 4
    http://agiletoolkit.org/

   (c) 2008-2013 Agile Toolkit Limited <<EMAIL>>
   Distributed under Affero General Public License v3 and
   commercial license.

   See LICENSE or LICENSE_COM for more information
=====================================================ATK4=*/
/**
 * Displays submit button
 *
 * @author      Romans <<EMAIL>>
 * @copyright   See file COPYING
 * @version     $Id$
 */
class Form_Submit extends Button {
    public $no_save=null;

    public $form;

    function init(){
        parent::init();
        $this->addClass('atk-effect-success');
        $this->template->trySet('type','submit');
        if($this->form->js_widget){
            $this->js('click',array(
                        $this->form->js()->find('input[name=ajax_submit]')->val($this->short_name),
                        $this->form->js()->submit()
                        ));
        }
    }
    function setNoSave(){
        // Field value will not be saved into defined source (such as database)<commit_msg>remove success from default submit.<commit_after><?php
/***********************************************************
  ..

  Reference:
  http://agiletoolkit.org/doc/ref

==ATK4===================================================
   This file is part of Agile Toolkit 4
    http://agiletoolkit.org/

   (c) 2008-2013 Agile Toolkit Limited <<EMAIL>>
   Distributed under Affero General Public License v3 and
   commercial license.

   See LICENSE or LICENSE_COM for more information
=====================================================ATK4=*/
/**
 * Displays submit button
 *
 * @author      Romans <<EMAIL>>
 * @copyright   See file COPYING
 * @version     $Id$
 */
class Form_Submit extends Button {
    public $no_save=null;

    public $form;

    function init(){
        parent::init();
        $this->template->trySet('type','submit');
        if($this->form->js_widget){
            $this->js('click',array(
                        $this->form->js()->find('input[name=ajax_submit]')->val($this->short_name),
                        $this->form->js()->submit()
                        ));
        }
    }
    function setNoSave(){
        // Field value will not be saved into defined source (such as database)
{'fraction_non_alphanumeric': 0.2529531568228106, 'fraction_numerical': 0.009775967413441956, 'mean_word_length': 2.7784615384615385, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 38, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7277472', 'n_tokens_mistral': 671, 'n_tokens_neox': 627, 'n_words': 162}