Plugin Directory

Changeset 1709921


Ignore:
Timestamp:
08/08/2017 03:09:08 AM (9 years ago)
Author:
roblesterjr
Message:

Fix js for nested menus

Location:
wp-vbx-lite/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-vbx-lite/trunk/assets/js/admin.js

    r1624295 r1709921  
    127127    $('body').on('click', '.menu_option_controls a.add', function(event) {
    128128        event.preventDefault();
    129         var index = $('.vbx-menu-options label').last().attr('data-index');
     129        var index = $(this).parents('.applet-content').find('.vbx-menu-options label').last().attr('data-index');
    130130        index++;
    131131        var flowindex = jQuery(this).parents('.applet-content').find('span.index').text();
    132132        flowindex--;
    133         $('.vbx-menu-options label').last().after('<label data-index="'+index+'">Keys: <input name="flow['+parseInt(flowindex)+'][menu_options]['+index+']" value="" type="text"><div class="dropzone" data-index="'+parseInt(flowindex)+'"><input class="drop" type="hidden" name="flow['+parseInt(flowindex)+'][menu_option_'+index+']" value=""><div class="flow ui-droppable" style=""></div><div class="backdrop"><p>Drop Applet Here</p></div></div><div class="menu_option_controls"><a href="#" class="remove"><span class="dashicons dashicons-minus"></span></a><a href="#" class="add"><span class="dashicons dashicons-plus"></span></a></div></label>');
     133        $(this).parents('.applet-content').find('.vbx-menu-options label').last().after('<label data-index="'+index+'">Keys: <input name="flow['+parseInt(flowindex)+'][menu_options]['+index+']" value="" type="text"><div class="dropzone" data-index="'+parseInt(flowindex)+'"><input class="drop" type="hidden" name="flow['+parseInt(flowindex)+'][menu_option_'+index+']" value=""><div class="flow ui-droppable" style=""></div><div class="backdrop"><p>Drop Applet Here</p></div></div><div class="menu_option_controls"><a href="#" class="remove"><span class="dashicons dashicons-minus"></span></a><a href="#" class="add"><span class="dashicons dashicons-plus"></span></a></div></label>');
    134134        $('.vbx-menu-options label[data-index="'+index+'"]').find('.flow').droppable(dropArgs);
    135135    });
  • wp-vbx-lite/trunk/readme.txt

    r1707014 r1709921  
    33Tags: phone, twilio, utilities, general, vbx, professional, calls, voicemail, messages, sms, text, text message
    44Requires at least: 4.6
    5 Tested up to: 4.7
     5Tested up to: 4.8
    66Stable tag: trunk
    77License: GPLv2 or later
     
    5454== Changelog ==
    5555
     56=== Version 1.2.3 ===
     57Fixes a bug with nested menus
     58
    5659=== Version 1.2.2 ===
    5760Exposed some applet functions for extendability
  • wp-vbx-lite/trunk/wp-vbx.php

    r1707014 r1709921  
    55Plugin URI: https://roblesterjr.com/wp-vbx
    66Description: Wordpress VBX - Powered by Twilio. Provides an internet based phone system managed right from your wordpress site.
    7 Version: 1.2.2
     7Version: 1.2.3
    88Author: Robert Lester
    99Author URI: https://roblesterjr.com
Note: See TracChangeset for help on using the changeset viewer.