| Current Path : /proc/1908984/root/proc/1908984/root/home/digilove/www/41423/ |
| Current File : //proc/1908984/root/proc/1908984/root/home/digilove/www/41423/admin-fields-modal.js.tar |
home/digilove/public_html/media/com_fields/js/admin-fields-modal.js 0000644 00000002215 15235165233 0021370 0 ustar 00 /**
* @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
Joomla = window.Joomla || {};
(function(Joomla) {
Joomla.fieldIns = function(id, editor) {
/** Use the API, if editor supports it **/
if (window.parent.Joomla && window.parent.Joomla.editors && window.parent.Joomla.editors.instances && window.parent.Joomla.editors.instances.hasOwnProperty(editor)) {
window.parent.Joomla.editors.instances[editor].replaceSelection("{field " + id + "}")
} else {
window.parent.jInsertEditorText("{field " + id + "}", editor);
}
window.parent.jModalClose();
};
Joomla.fieldgroupIns = function(id, editor) {
/** Use the API, if editor supports it **/
if (window.parent.Joomla && window.parent.Joomla.editors && window.parent.Joomla.editors.instances && window.parent.Joomla.editors.instances.hasOwnProperty(editor)) {
window.parent.Joomla.editors.instances[editor].replaceSelection("{fieldgroup " + id + "}")
} else {
window.parent.jInsertEditorText("{fieldgroup " + id + "}", editor);
}
window.parent.jModalClose();
};
})(Joomla);