Geen bewerkingssamenvatting
 
k (1 versie geïmporteerd: Zie Jira-task KP-222.)
 
(13 tussenliggende versies door 4 gebruikers niet weergegeven)
Regel 1: Regel 1:
<noinclude>
<noinclude>Dit is de Widget:EMMNavigatorTree Widget.</noinclude>
Dit is de Widget:EMMNavigatorTree Widget.
</noinclude>
<includeonly>
<includeonly>
<!--<div class="row">
    <div id="emm-navtree" class="demo" style="margin-top:1em;"></div>
<div class="col-md-4 col-sm-8 col-xs-8">
    <link rel="stylesheet" type="text/css" href="../extensions/emm-navigation-tree/js/lib/style.css">
<button type="button" class="btn btn-success btn-sm" onclick="demo_create();"><i class="glyphicon glyphicon-asterisk"></i> Create</button>
<button type="button" class="btn btn-warning btn-sm" onclick="demo_rename();"><i class="glyphicon glyphicon-pencil"></i> Rename</button>
<button type="button" class="btn btn-danger btn-sm" onclick="demo_delete();"><i class="glyphicon glyphicon-remove"></i> Delete</button>
</div>
</div>-->
<div id="results" class="demo" style="margin-top:1em;"></div>
<script type="text/javascript" src="../extensions/emm-navigation-tree/js/lib/jquery-1.9.1.js"></script>
<script src="../extensions/emm-navigation-tree/js/lib/jstree.js" charset="utf-8"></script>
 
<script src="../extensions/emm-navigation-tree/js/Emm-Jstree.js" charset="utf-8"></script>
 
 
<script type="text/javascript">
<script type="text/javascript">
function checkIfReadyAndExecute()
function checkIfReadyAndExecute()
{
{  
      var a='<!--{$resultsData}-->';
var c='<!--{$rootPages}-->';
      var c='<!--{$rootPages}-->';
var emmNavigationTree=new EMMNavigationTree(mw,
      console.log("rootPages:",c);
"<!--{$currentPageName|default:'Pagename niet doorgekregen'}-->",c);
      var emmNavigationTree=new EMMNavigationTree(
}
        "<!--{$currentPageName|default:'Pagename niet doorgekregen'}-->",c,
RLQ.push(function () {
         a);
    function waitForMwLoaderUsing(callback) {
        if (typeof mw !== 'undefined' && mw.loader && typeof mw.loader.using === 'function') {
            callback();
         } else {
            console.warn('mw.loader.using is not available yet. Retrying...');
            setTimeout(function() {
                waitForMwLoaderUsing(callback);
            }, 100); // Retry every 100 milliseconds
        }
    }


}
    waitForMwLoaderUsing(function () {
/*RLQ.push(function () {
        mw.loader.using(['ext.EMMNavigationTree', 'mediawiki.api'])
    console.log("jquery now loaded");
            .then(function () {
//
                console.log('Modules loaded');
    $.getScript("../extensions/emm-navigation-tree/js/lib/jstree.js", function(){
                checkIfReadyAndExecute();
    $.getScript("../extensions/emm-navigation-tree/js/Emm-Jstree.js", function(){
            })
            .catch(function (err) {
                console.error('Error loading modules:', err);
            });
    });
});


        checkIfReadyAndExecute();


    });
    });
});*/
checkIfReadyAndExecute();
</script>
</script>
</includeonly>
</includeonly>

Huidige versie van 15 okt 2024 om 16:47

Dit is de Widget:EMMNavigatorTree Widget.