Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. // new line
  2. $row .= '<div id="' . $field_name . '_' . $next_value . '_wrapper">';
  3.  
  4. // editted line
  5. $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">&#9652;</span><span class="down">&#9662;</span></div>';
  6.  
  7. // new line
  8. $row .= '</div>';
  9.  
  10.  
  11. // jQuery
  12. <script>
  13. jQuery("#by_product_fast_facts_container div div span").css({'cursor': 'pointer', 'float':'right', 'font-size': '20px', 'width':'20px'});
  14.  
  15. jQuery("#by_product_fast_facts_container div div .up").on('click', function(e) {
  16. e.stopPropagation();
  17. jQuery(this).parent().parent().insertBefore(jQuery(this).parent().parent().prev());
  18. });
  19.  
  20. jQuery("#by_product_fast_facts_container div div .down").on('click', function(e) {
  21. e.stopPropagation();
  22. jQuery(this).parent().parent().insertAfter(jQuery(this).parent().parent().next());
  23. });
  24. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement