Plugin Directory

Changeset 2723470


Ignore:
Timestamp:
05/13/2022 05:14:08 PM (4 years ago)
Author:
gangesh
Message:

Fixed multiple delete bug

Location:
simple-org-chart/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • simple-org-chart/trunk/index.php

    r2471302 r2723470  
    22/*
    33Plugin Name: Simple Org Chart
    4 Version: 2.3.3
     4Version: 2.3.4
    55Plugin URI: https://wordpress.org/plugins/simple-org-chart/
    66Description: Build Org chart by dragging users in required order.
  • simple-org-chart/trunk/js/custom.js

    r2376598 r2723470  
    4242
    4343                jQuery("#" + textbox_id).val(attachment.id);
    44                 console.log(textbox_id);
     44                //console.log(textbox_id);
    4545                current_element.attr("src", attachment.url).show();
    4646            } else {
     
    8888
    8989            if (jQuery("ul#org > li > ul").length) {
    90                 console.log(1);
     90               // console.log(1);
    9191                jQuery("ul#org > li > ul").append(
    9292                    '<li id="' +
     
    106106                );
    107107            } else {
    108                 console.log(2);
     108               // console.log(2);
    109109                jQuery("ul#org > li").append(
    110110                    '<ul id="2"><li id="' +
     
    139139
    140140    /*If not is removing, is conflict in jQuery.jOrgChart.js, line 227 --> Prevent trees collapsing if a link inside a node is clicked */
    141     jQuery(".rmv-nd").on("click", function() {
     141    jQuery(document).on("click", ".rmv-nd", function() {
    142142        var id = jQuery(this)
    143143            .parent()
     
    172172            .children("ul")
    173173            .html();
    174         console.log(get_all_children);
    175         jQuery("#org #" + id)
    176             .closest("ul")
    177             .append(get_all_children);
     174
     175        if( typeof get_all_children !== 'undefined' || get_all_children !== null ){
     176            //console.log(get_all_children);
     177            jQuery("#org #" + id)
     178                .closest("ul")
     179                .append(get_all_children);
     180        }
     181
    178182        jQuery("#org #" + id).remove();
    179183        jQuery(".jOrgChart").remove();
     
    224228    saveArray(hierarchy);
    225229
    226     console.log(hierarchy);
     230   // console.log(hierarchy);
    227231}
    228232
  • simple-org-chart/trunk/readme.txt

    r2673988 r2723470  
    22Contributors: gangesh
    33Tags: org chart, organisation chart, org-chart, organization chart
    4 Requires at least: 4.0
     4Requires at least: 4.8
    55Tested up to: 5.9
    66Stable tag: trunk
     
    8080
    8181== Changelog ==
     82
     83= 2.3.4 =
     84
     85* Fixed multiple node bug
    8286
    8387= 2.3.3 =
Note: See TracChangeset for help on using the changeset viewer.