Changeset 1485963
- Timestamp:
- 08/29/2016 10:07:41 PM (9 years ago)
- Location:
- tea-page-content/trunk
- Files:
-
- 9 edited
-
assets/js/tea-page-content-admin.js (modified) (2 diffs)
-
classes/config.class.php (modified) (1 diff)
-
classes/helper.class.php (modified) (1 diff)
-
config.php (modified) (1 diff)
-
modules/shortcode.php (modified) (1 diff)
-
modules/widget.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
tea-page-content.class.php (modified) (1 diff)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tea-page-content/trunk/assets/js/tea-page-content-admin.js
r1485276 r1485963 25 25 // tpc-call-item-options-modal 26 26 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) { 28 30 var $this = $(this); 29 31 var modal = $this.attr('data-modal'); … … 38 40 39 41 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 }; 62 63 63 API.storage.set('dialog-' + modal, $dialog);64 API.storage.set('dialog-' + modal, $dialog); 64 65 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 } 67 73 } 74 75 e.preventDefault(); 68 76 }); 69 70 $document.on('click', '.tpc-call-modal-button[data-modal]', API.listeners.call_modal);71 77 72 78 // Exit if widgets area is empty -
tea-page-content/trunk/classes/config.class.php
r1485276 r1485963 2 2 /** 3 3 * @package Tea Page Content 4 * @version 1.2. 04 * @version 1.2.1 5 5 */ 6 6 -
tea-page-content/trunk/classes/helper.class.php
r1485276 r1485963 2 2 /** 3 3 * @package Tea Page Content 4 * @version 1.2. 04 * @version 1.2.1 5 5 */ 6 6 -
tea-page-content/trunk/config.php
r1485276 r1485963 2 2 /** 3 3 * @package Tea Page Content 4 * @version 1.2. 04 * @version 1.2.1 5 5 */ 6 6 -
tea-page-content/trunk/modules/shortcode.php
r1485276 r1485963 2 2 /** 3 3 * @package Tea Page Content 4 * @version 1.2. 04 * @version 1.2.1 5 5 */ 6 6 -
tea-page-content/trunk/modules/widget.php
r1485276 r1485963 2 2 /** 3 3 * @package Tea Page Content 4 * @version 1.2. 04 * @version 1.2.1 5 5 */ 6 6 -
tea-page-content/trunk/readme.txt
r1485277 r1485963 4 4 Requires at least: 4.0, PHP 5.3 5 5 Tested up to: 4.6 6 Stable tag: 1.2. 06 Stable tag: 1.2.1 7 7 Author URI: https://github.com/Tsjuder 8 8 Plugin URI: http://tsjuder.github.io/tea-page-content/ … … 37 37 38 38 == Screenshots == 39 1. First screen with list of posts and basic parameters 40 2. Second screen after choosing template and list of template variables 39 1. Widget UI. Click by gear for open page level variables modal 40 2. Page level variables window (opens after clicking by gear) 41 3. Insert shortcode modal window 41 42 42 43 == Frequently Asked Questions == … … 62 63 63 64 == Changelog == 65 66 = 1.2.1 = 67 * \* Fix bug with non-opening modal window of page level variables 64 68 65 69 = 1.2.0 = -
tea-page-content/trunk/tea-page-content.class.php
r1485276 r1485963 2 2 /** 3 3 * @package Tea Page Content 4 * @version 1.2. 04 * @version 1.2.1 5 5 */ 6 6 -
tea-page-content/trunk/uninstall.php
r1485276 r1485963 2 2 /** 3 3 * @package Tea Page Content 4 * @version 1.2. 04 * @version 1.2.1 5 5 */ 6 6
Note: See TracChangeset
for help on using the changeset viewer.