Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // new line
- $row .= '<div id="' . $field_name . '_' . $next_value . '_wrapper">';
- // editted line
- $row .= '<div id="' . $field_name . '_' . $next_value . '_trigger" data-dynamic-show="' . $field_name . '_' . $next_value . '_content" class="by-admin-dynamic-title">' . $value->{'title'} . ' <span class="up">▴</span><span class="down">▾</span></div>';
- // new line
- $row .= '</div>';
- // jQuery
- <script>
- jQuery("#by_product_fast_facts_container div div span").css({'cursor': 'pointer', 'float':'right', 'font-size': '20px', 'width':'20px'});
- jQuery("#by_product_fast_facts_container div div .up").on('click', function(e) {
- e.stopPropagation();
- jQuery(this).parent().parent().insertBefore(jQuery(this).parent().parent().prev());
- });
- jQuery("#by_product_fast_facts_container div div .down").on('click', function(e) {
- e.stopPropagation();
- jQuery(this).parent().parent().insertAfter(jQuery(this).parent().parent().next());
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement