Plugin Directory

Changeset 2054106


Ignore:
Timestamp:
03/20/2019 03:50:50 PM (7 years ago)
Author:
aspexi
Message:

1.1.3

Location:
aspexi-sweet-popups
Files:
41 added
4 edited

Legend:

Unmodified
Added
Removed
  • aspexi-sweet-popups/trunk/aspexi-sweet-popups.php

    r1832129 r2054106  
    66Author: Aspexi
    77Author URI: http://aspexi.com/
    8 Version: 1.1.2
     8Version: 1.1.3
    99
    1010License: GPLv2 or later
    1111
    12     © Copyright 2015 Aspexi
     12    © Copyright 2019 Aspexi
    1313    This program is free software; you can redistribute it and/or modify
    1414    it under the terms of the GNU General Public License, version 2, as
     
    2727if ( ! class_exists( 'AspexiSweetPopups' ) ) {
    2828
    29     define('ASPEXISWEETPOPUPS_VERSION', '1.1.2');
     29    define('ASPEXISWEETPOPUPS_VERSION', '1.1.3');
    3030    define('ASPEXISWEETPOPUPS_URL', plugin_dir_url( __FILE__ ) );
    3131    define('ASPEXISWEETPOPUPS_ADMIN_URL', 'themes.php?page=' . basename( __FILE__ ) );
  • aspexi-sweet-popups/trunk/js/asp-admin.js

    r1832129 r2054106  
    11jQuery(document).ready(function() {
    22    var previewButton = jQuery('.previewbutton');
     3
     4    const wrapper = document.createElement('div');
     5    wrapper.innerHTML = asp_nl2br( jQuery('textarea[name="asp_content"]').val() );
    36
    47    previewButton.on('click', function(event) {
     
    2932        swal({
    3033            title: jQuery('input[name="asp_title"]').val(),
    31             text: asp_nl2br( jQuery('textarea[name="asp_content"]').val() ),
    32             icon: type,
    33             html: true
     34            content: wrapper,
     35            icon: type
    3436        });
    3537    });
     
    8486                title: asp.nav_tab_changed_title,
    8587                text: asp.nav_tab_changed_text,
    86                 type: "warning",
     88                icon: "warning",
    8789                showCancelButton: true,
    8890                confirmButtonText: asp.nav_tab_changed_yes,
  • aspexi-sweet-popups/trunk/js/asp.js

    r1832129 r2054106  
    11jQuery(document).ready(function() {
    22    if (asp.show) {
     3
     4        const wrapper = document.createElement('div');
     5        wrapper.innerHTML = asp.content;
     6
    37        swal({
    48            title: asp.title,
    5             text: asp.content,
    6             icon: (asp.icon_type != 'empty') ? asp.icon_type : '',
    7             html: asp.html
     9            content: wrapper,
     10            icon: (asp.icon_type != 'empty') ? asp.icon_type : ''
    811        });
    912    }
  • aspexi-sweet-popups/trunk/readme.txt

    r1832129 r2054106  
    55Tags: popup, popups, scroll popups, wordpress popup, wp popups, login popup, promotion, responsive popup, pop over, marketing, advertise, box, layout, notification, overlay, pop-up, simple popup
    66Requires at least: 4.0
    7 Tested up to: 4.9.4
    8 Stable tag: 1.1.2
     7Tested up to: 5.1
     8Stable tag: 1.1.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5555== Changelog ==
    5656
     57= 1.1.3 =
     58* HTML parsing fix
     59
    5760= 1.1.2 =
    5861* Sweet Alert library update
Note: See TracChangeset for help on using the changeset viewer.