File Manager

Current Directory: /home/astoriaah/www/components/com_jce/editor/tiny_mce/plugins/templatemanager/js
Viewing File: /home/astoriaah/www/components/com_jce/editor/tiny_mce/plugins/templatemanager/js/templates.js
/* jce - 2.9.24 | 2022-05-27 | https://www.joomlacontenteditor.net | Copyright (C) 2006 - 2022 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */ !function($){$(document).ready(function(){$(".controls").on("change",".wf-templatemanager-templates :input",function(e){var $parent=$(this).parents(".wf-templatemanager-templates"),$ctrl=$parent.parent(),items=[];$(".wf-templatemanager-templates",$ctrl).each(function(){var data={};$(":input[name]",this).each(function(){var name=$(this).attr("name"),val=$(this).val();data[name]=$("<textarea/>").text(val).html()}),items.push(data)}),$ctrl.find('input[name*="jform"][type="hidden"]').val(JSON.stringify(items)).trigger("change")})})}(jQuery);