diff --git a/js/cases.js b/js/cases.js index 2b3054a..a653adf 100644 --- a/js/cases.js +++ b/js/cases.js @@ -28,18 +28,21 @@ along with this plugin. If not, see . glpi_pm = { add_tab_panel: function (name, title, html){ //debugger ; - var loctabs = $('#tabspanel').next('div[id^=tabs]'); + var loctabs = $('#tabspanel'); if( !loctabs[0].children[name] ) { // panel is not yet existing, create one - if( loctabs.find('a[href=\"#'+name+'\"]').length == 0 ) { - loctabs.find('ul').append( '
  • ' + title + '
  • ' ); + if (loctabs.find('a[data-bs-target=\"#'+name+'\"]').length == 0 ) { + loctabs.append("" ); } - - loctabs.append( '
    ' + html + '
    '); - loctabs.tabs('refresh'); // to show the panel + var select = loctabs.next('select'); + select.append("") + var tabcontentdiv = select.next('div'); + tabcontentdiv.append("
    " + html + "
    "); + $("a[data-bs-target='#" +name +"']").tab("show"); + //tabcontentdiv.tabs('refresh'); // to show the panel } // activate it - var tabIndex = loctabs.find('a[href=\"#'+name+'\"]').parent().index(); - loctabs.tabs( 'option', 'active', tabIndex) ; // to activate it + //var tabIndex = loctabs.find('a[href=\"#'+name+'\"]').parent().index(); + // loctabs.tabs( 'option', 'active', tabIndex) ; // to activate it }, diff --git a/processmaker.xml b/processmaker.xml index 8fe2d3a..c6b4eb7 100644 --- a/processmaker.xml +++ b/processmaker.xml @@ -45,7 +45,7 @@ 9.5 - 5.0.2 + 5.0.3 10.0 diff --git a/setup.php b/setup.php index b62e78b..b193489 100644 --- a/setup.php +++ b/setup.php @@ -25,7 +25,7 @@ You should have received a copy of the GNU General Public License along with this plugin. If not, see . -------------------------------------------------------------------------- */ -define('PROCESSMAKER_VERSION', '5.0.2'); +define('PROCESSMAKER_VERSION', '5.0.3'); // Minimal GLPI version, inclusive define('PLUGIN_PROCESSMAKER_MIN_GLPI', '10.0');