Plugin Directory

Changeset 2223286


Ignore:
Timestamp:
01/07/2020 06:37:15 AM (6 years ago)
Author:
zozuk1
Message:

Release v2.2.1

Location:
wphindi/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • wphindi/trunk/assets/js/deactivate.js

    r2222696 r2223286  
    33        this.deactivationButton = WPDeactivationButton;
    44        this.popUpFormID = `#${popUpFormID}`;
    5 
     5        this.popUpForm   = document.querySelector(this.popUpFormID) ;
    66        this.pluginDeactivationURL = this.getDeactivationURL();
     7        this.prepareForm();
    78        this.assignPopUp();
    89        this.bindAjaxToForm();
     
    8889        window.location.href = deactivationURL;
    8990    }
     91
     92    /**
     93     * Returns site URL
     94     * @returns {string}
     95     */
     96    getSiteURL(){
     97        return window.location.href.split('wp-admin')[0];
     98    }
     99
     100    /**
     101     * Appends required data to form input
     102     */
     103    prepareForm(){
     104        // Set site URL
     105        this.popUpForm.siteURL.value = this.getSiteURL();
     106    }
    90107}
    91108/**
  • wphindi/trunk/assets/js/deactivation-form.js

    r2222696 r2223286  
    3838            </div>
    3939            <div>
     40                <label for='wphindi-site'>Site</label>
     41                <br>
     42                <input type='url' name='siteURL' id='wphindi-site' class='text' readonly>
     43            </div>
     44            <div>
    4045                <button type='submit' class='button action' id='wphindi-feedback-deactivate'>Submit & Deactivate</button>
    4146            </div>
  • wphindi/trunk/changelog.md

    r2222696 r2223286  
    11# Changelog
    22All notable changes to this project will be documented in this file.
     3
     4## [2.2.1] - 7-Dec-2020
     5### Added
     6* Site URL field on feedback screen.
    37
    48## [2.2.0] - 6-Dec-2020
  • wphindi/trunk/constant.php

    r2222696 r2223286  
    55define('WPHINDI_CORE_URL', plugin_dir_url(__FILE__));
    66
    7 define('WPHINDI_VERSION', "2.2.0");
     7define('WPHINDI_VERSION', "2.2.1");
  • wphindi/trunk/readme.txt

    r2222696 r2223286  
    5858== Changelog ==
    5959
     60= 2.2.1 =
     61* Added site url field on feedback screen
     62
     63= 2.2.0 =
     64* New feedback interface
     65
    6066= 2.1.0 =
    6167* Added support for Gutenberg Lists
  • wphindi/trunk/zozuk-translator.php

    r2222696 r2223286  
    66    Author: Zozuk
    77    Author URI: https://www.zozuk.com
    8     Version: 2.2.0
     8    Version: 2.2.1
    99    Requires at least: 5.0
    1010   
Note: See TracChangeset for help on using the changeset viewer.