Added some helper script to the new Joomla Module Builder. Consolidated some ajax calls.

This commit is contained in:
2019-12-11 01:18:55 +02:00
parent 8c284aaed4
commit b9729c49af
16 changed files with 488 additions and 514 deletions

View File

@ -579,9 +579,22 @@ jQuery(function() {
jQuery(this).selText().addClass("selected");
});
});
jQuery('#adminForm').on('change', '#jform_custom_get',function (e) {
e.preventDefault();
// load the dynamic get include with the needed initiation
setModuleCode();
});
jQuery('#adminForm').on('change', '#jform_add_class_helper',function (e) {
e.preventDefault();
// load the dynamic helper include with the needed initiation
setModuleCode();
});
jQuery('#adminForm').on('change', '#jform_libraries',function (e) {
e.preventDefault();
// get the snippets of the selected libraries
getSnippets();
// load the dynamic media placeholders if needed
setModuleCode();
});
jQuery.fn.selText = function() {