Widget:IncludeTibContentOnClick: Difference between revisions

From Rangjung Yeshe Wiki - Dharma Dictionary
Jump to navigation Jump to search
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
 
Line 1: Line 1:
<div id="tibContent"></div><script>
<div id="tibContent"></div><script>
var loadNewContent = function {$.ajax("<!--{$page|escape:'url'}-->/tib #tibContentToLoad", {success: function(response) {$("#tibContent").html(response); } }); };
$(function () {
 
$('#ooui-php-5 .oo-ui-labelElement-label').click(function() {
$("#tibContent").on('click', loadNewContent);
$("#tibContent").load("<!--{$page|escape:'url'}-->/tib #tibContentToLoad");
});
}());
</script>
</script>

Latest revision as of 11:44, 3 August 2021

<script>

$(function () { $('#ooui-php-5 .oo-ui-labelElement-label').click(function() { $("#tibContent").load("/tib #tibContentToLoad"); }); }()); </script>