Plugin Directory

Changeset 1485963


Ignore:
Timestamp:
08/29/2016 10:07:41 PM (9 years ago)
Author:
Tsjuder
Message:

Added version 1.2.1

Location:
tea-page-content/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • tea-page-content/trunk/assets/js/tea-page-content-admin.js

    r1485276 r1485963  
    2525        // tpc-call-item-options-modal
    2626
    27         $('.tpc-call-modal-button[data-modal]').each(function() {
     27        //$('.tpc-call-modal-button[data-modal]').each();
     28//
     29        $document.on('click', '.tpc-call-modal-button[data-modal]', function(e) {
    2830            var $this = $(this);
    2931            var modal = $this.attr('data-modal');
     
    3840
    3941            if($dialog && $dialog.length) {
    40                 $this.on('click', function() {
    41                     var params = {
    42                         'autoOpen': false,
    43                         'draggable': false,
    44                         'hide': 250,
    45                         'show': 250,
    46                         'modal': true,
    47                         'resizable': false,
    48                         'closeText': '',
    49                         'buttons': [
    50                             {
    51                                 text: _buttons[modal_button].title,
    52                                 class:'button button-primary',
    53                                 click: API.listeners['dialog_' + modal_button + '_button_click']
    54                             }, {
    55                                 text: 'Cancel',
    56                                 class:'button',
    57                                 click: API.listeners.dialog_cancel_button_click
    58                             }
    59                         ],
    60                         'close': API.callbacks.dialog_on_close
    61                     };
     42                var params = {
     43                    'autoOpen': false,
     44                    'draggable': false,
     45                    'hide': 250,
     46                    'show': 250,
     47                    'modal': true,
     48                    'resizable': false,
     49                    'closeText': '',
     50                    'buttons': [
     51                        {
     52                            text: _buttons[modal_button].title,
     53                            class:'button button-primary',
     54                            click: API.listeners['dialog_' + modal_button + '_button_click']
     55                        }, {
     56                            text: 'Cancel',
     57                            class:'button',
     58                            click: API.listeners.dialog_cancel_button_click
     59                        }
     60                    ],
     61                    'close': API.callbacks.dialog_on_close
     62                };
    6263
    63                     API.storage.set('dialog-' + modal, $dialog);
     64                API.storage.set('dialog-' + modal, $dialog);
    6465
    65                     $dialog.dialog(params);
    66                 });
     66                $dialog.dialog(params);
     67
     68                TeaPageContent_API.storage.set('dialog', $dialog);
     69
     70                if(modal in TeaPageContent_API.handlers.modals) {
     71                    TeaPageContent_API.handlers.modals[modal](e, $this);
     72                }
    6773            }
     74
     75            e.preventDefault();
    6876        });
    69 
    70         $document.on('click', '.tpc-call-modal-button[data-modal]', API.listeners.call_modal);
    7177
    7278        // Exit if widgets area is empty
  • tea-page-content/trunk/classes/config.class.php

    r1485276 r1485963  
    22/**
    33 * @package Tea Page Content
    4  * @version 1.2.0
     4 * @version 1.2.1
    55 */
    66
  • tea-page-content/trunk/classes/helper.class.php

    r1485276 r1485963  
    22/**
    33 * @package Tea Page Content
    4  * @version 1.2.0
     4 * @version 1.2.1
    55 */
    66
  • tea-page-content/trunk/config.php

    r1485276 r1485963  
    22/**
    33 * @package Tea Page Content
    4  * @version 1.2.0
     4 * @version 1.2.1
    55 */
    66
  • tea-page-content/trunk/modules/shortcode.php

    r1485276 r1485963  
    22/**
    33 * @package Tea Page Content
    4  * @version 1.2.0
     4 * @version 1.2.1
    55 */
    66
  • tea-page-content/trunk/modules/widget.php

    r1485276 r1485963  
    22/**
    33 * @package Tea Page Content
    4  * @version 1.2.0
     4 * @version 1.2.1
    55 */
    66
  • tea-page-content/trunk/readme.txt

    r1485277 r1485963  
    44Requires at least: 4.0, PHP 5.3
    55Tested up to: 4.6
    6 Stable tag: 1.2.0
     6Stable tag: 1.2.1
    77Author URI: https://github.com/Tsjuder
    88Plugin URI: http://tsjuder.github.io/tea-page-content/
     
    3737
    3838== Screenshots ==
    39 1. First screen with list of posts and basic parameters
    40 2. Second screen after choosing template and list of template variables
     391. Widget UI. Click by gear for open page level variables modal
     402. Page level variables window (opens after clicking by gear)
     413. Insert shortcode modal window
    4142
    4243== Frequently Asked Questions ==
     
    6263
    6364== Changelog ==
     65
     66= 1.2.1 =
     67* \* Fix bug with non-opening modal window of page level variables
    6468
    6569= 1.2.0 =
  • tea-page-content/trunk/tea-page-content.class.php

    r1485276 r1485963  
    22/**
    33 * @package Tea Page Content
    4  * @version 1.2.0
     4 * @version 1.2.1
    55 */
    66
  • tea-page-content/trunk/uninstall.php

    r1485276 r1485963  
    22/**
    33 * @package Tea Page Content
    4  * @version 1.2.0
     4 * @version 1.2.1
    55 */
    66
Note: See TracChangeset for help on using the changeset viewer.