Changeset 1301329
- Timestamp:
- 12/06/2015 12:05:45 PM (10 years ago)
- Location:
- acf-fold-flexible-content
- Files:
-
- 4 edited
- 10 copied
-
tags/1.2.0 (copied) (copied from acf-fold-flexible-content/trunk)
-
tags/1.2.0/acf-fold-flexible.php (copied) (copied from acf-fold-flexible-content/trunk/acf-fold-flexible.php) (1 diff)
-
tags/1.2.0/css (copied) (copied from acf-fold-flexible-content/trunk/css)
-
tags/1.2.0/css/acf-fold-flexible.admin.css (copied) (copied from acf-fold-flexible-content/trunk/css/acf-fold-flexible.admin.css)
-
tags/1.2.0/js (copied) (copied from acf-fold-flexible-content/trunk/js)
-
tags/1.2.0/js/acf-fold-flexible.admin.js (copied) (copied from acf-fold-flexible-content/trunk/js/acf-fold-flexible.admin.js) (3 diffs)
-
tags/1.2.0/js/acf-fold-flexible.tooltip.js (copied) (copied from acf-fold-flexible-content/trunk/js/acf-fold-flexible.tooltip.js)
-
tags/1.2.0/readme.md (copied) (copied from acf-fold-flexible-content/trunk/readme.md) (1 diff)
-
tags/1.2.0/readme.txt (copied) (copied from acf-fold-flexible-content/trunk/readme.txt) (2 diffs)
-
tags/1.2.0/screenshot-1.png (copied) (copied from acf-fold-flexible-content/trunk/screenshot-1.png)
-
trunk/acf-fold-flexible.php (modified) (1 diff)
-
trunk/js/acf-fold-flexible.admin.js (modified) (3 diffs)
-
trunk/readme.md (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
acf-fold-flexible-content/tags/1.2.0/acf-fold-flexible.php
r1295088 r1301329 4 4 Plugin URI: https://github.com/urre/acf-fold-flexible 5 5 Description: A simple plugin for enhancing the Advanced Custom Fields Flexible Content Field. Shows collapsed panels initially, and representing icons for each field type. 6 Version: 1. 1.76 Version: 1.2.0 7 7 Author: Urban Sanden 8 8 Author URI: http://urre.me -
acf-fold-flexible-content/tags/1.2.0/js/acf-fold-flexible.admin.js
r1295082 r1301329 24 24 labels.each(function() { 25 25 26 // Fold everything 27 $(this).removeClass('open'); 28 $(this).parent().attr('data-toggle', 'closed'); 29 30 if(acfpro) { 31 $(this).nextAll('.acf-fields').first().hide(); 32 } else { 26 // Fold everything on non ACF Pro 27 if(!acfpro) { 28 $(this).removeClass('open'); 29 $(this).parent().attr('data-toggle', 'closed'); 33 30 $(this).nextAll('.row_layout').first().hide(); 34 31 } … … 97 94 }); 98 95 96 97 // Toggle handle open/closed on the native collapser on ACF PRO (released in 5.3.1) 98 $(document).on('click', '*[data-event="collapse-layout"]', function(e) { 99 100 var nativeCollapser = $(this); 101 102 if(!nativeCollapser.parent().parent().parent().hasClass('-collapsed') ) { 103 nativeCollapser.parent().parent().parent().find('.acf-fc-layout-handle').addClass('open'); 104 } else { 105 nativeCollapser.parent().parent().parent().find('.acf-fc-layout-handle').removeClass('open'); 106 } 107 108 e.preventDefault(); 109 110 }); 111 99 112 // Open/Close panels 100 113 $(document).on('click', '.acf-fc-layout-handle', function() { … … 104 117 // Toggle open class 105 118 if(acfpro) { 106 if($(this).next().next('.acf-fields').css("display") == "none") { 107 console.log('has display none'); 119 if(!$(this).parent().hasClass('-collapsed') ) { 108 120 toggle_list.addClass('open'); 109 $(this).next().next('.acf-fields').show();121 // $(this).next().next('.acf-fields').show(); 110 122 } else { 111 console.log('has NOT display none');112 123 toggle_list.removeClass('open'); 113 $(this).next().next('.acf-fields').hide();124 // $(this).next().next('.acf-fields').hide(); 114 125 } 115 126 } else { -
acf-fold-flexible-content/tags/1.2.0/readme.md
r1187379 r1301329 25 25 26 26 ## Changelog 27 + 1.2.0: Added support for the native toggle icons to show layout open/close state released in ACF PRO 5.3.1. 28 + 1.1.7: Support for ACF PRO 5.3.2.2 27 29 + 1.1.6: Fold everything from start. No longer check open/closed state. Better support for ACF Pro. 28 30 + 1.1.5: No longer check open/closed state -
acf-fold-flexible-content/tags/1.2.0/readme.txt
r1295088 r1301329 1 1 === ACF Fold Flexible Content === 2 2 Contributors: urre 3 Donate link: http://urre.me/ donate3 Donate link: http://urre.me/ 4 4 Tags: fields, acf, advanced custom fields, custom fields, collapse, expand, multiple, acfpro, PRO 5 5 Requires at least: 3.0 6 Tested up to: 4. 2.27 Stable tag: 1. 1.76 Tested up to: 4.3.1 7 Stable tag: 1.2.0 8 8 9 9 A simple plugin for enhancing the ACF Flexible Content Field. Collapsed flexible content panels with helping icons representing each field types inside. … … 33 33 34 34 == Changelog == 35 36 = 1.2.0 = 37 Added support for the native toggle icons to show layout open/close state released in ACF PRO 5.3.1. 35 38 36 39 = 1.1.7 = -
acf-fold-flexible-content/trunk/acf-fold-flexible.php
r1295088 r1301329 4 4 Plugin URI: https://github.com/urre/acf-fold-flexible 5 5 Description: A simple plugin for enhancing the Advanced Custom Fields Flexible Content Field. Shows collapsed panels initially, and representing icons for each field type. 6 Version: 1. 1.76 Version: 1.2.0 7 7 Author: Urban Sanden 8 8 Author URI: http://urre.me -
acf-fold-flexible-content/trunk/js/acf-fold-flexible.admin.js
r1295082 r1301329 24 24 labels.each(function() { 25 25 26 // Fold everything 27 $(this).removeClass('open'); 28 $(this).parent().attr('data-toggle', 'closed'); 29 30 if(acfpro) { 31 $(this).nextAll('.acf-fields').first().hide(); 32 } else { 26 // Fold everything on non ACF Pro 27 if(!acfpro) { 28 $(this).removeClass('open'); 29 $(this).parent().attr('data-toggle', 'closed'); 33 30 $(this).nextAll('.row_layout').first().hide(); 34 31 } … … 97 94 }); 98 95 96 97 // Toggle handle open/closed on the native collapser on ACF PRO (released in 5.3.1) 98 $(document).on('click', '*[data-event="collapse-layout"]', function(e) { 99 100 var nativeCollapser = $(this); 101 102 if(!nativeCollapser.parent().parent().parent().hasClass('-collapsed') ) { 103 nativeCollapser.parent().parent().parent().find('.acf-fc-layout-handle').addClass('open'); 104 } else { 105 nativeCollapser.parent().parent().parent().find('.acf-fc-layout-handle').removeClass('open'); 106 } 107 108 e.preventDefault(); 109 110 }); 111 99 112 // Open/Close panels 100 113 $(document).on('click', '.acf-fc-layout-handle', function() { … … 104 117 // Toggle open class 105 118 if(acfpro) { 106 if($(this).next().next('.acf-fields').css("display") == "none") { 107 console.log('has display none'); 119 if(!$(this).parent().hasClass('-collapsed') ) { 108 120 toggle_list.addClass('open'); 109 $(this).next().next('.acf-fields').show();121 // $(this).next().next('.acf-fields').show(); 110 122 } else { 111 console.log('has NOT display none');112 123 toggle_list.removeClass('open'); 113 $(this).next().next('.acf-fields').hide();124 // $(this).next().next('.acf-fields').hide(); 114 125 } 115 126 } else { -
acf-fold-flexible-content/trunk/readme.md
r1187379 r1301329 25 25 26 26 ## Changelog 27 + 1.2.0: Added support for the native toggle icons to show layout open/close state released in ACF PRO 5.3.1. 28 + 1.1.7: Support for ACF PRO 5.3.2.2 27 29 + 1.1.6: Fold everything from start. No longer check open/closed state. Better support for ACF Pro. 28 30 + 1.1.5: No longer check open/closed state -
acf-fold-flexible-content/trunk/readme.txt
r1295088 r1301329 1 1 === ACF Fold Flexible Content === 2 2 Contributors: urre 3 Donate link: http://urre.me/ donate3 Donate link: http://urre.me/ 4 4 Tags: fields, acf, advanced custom fields, custom fields, collapse, expand, multiple, acfpro, PRO 5 5 Requires at least: 3.0 6 Tested up to: 4. 2.27 Stable tag: 1. 1.76 Tested up to: 4.3.1 7 Stable tag: 1.2.0 8 8 9 9 A simple plugin for enhancing the ACF Flexible Content Field. Collapsed flexible content panels with helping icons representing each field types inside. … … 33 33 34 34 == Changelog == 35 36 = 1.2.0 = 37 Added support for the native toggle icons to show layout open/close state released in ACF PRO 5.3.1. 35 38 36 39 = 1.1.7 =
Note: See TracChangeset
for help on using the changeset viewer.