/
home
/
techb158
/
immovalet.com
/
vendor
/
botble
/
theme
/
resources
/
assets
/
js
/
/home/techb158/immovalet.com/vendor/botble/theme/resources/assets/js
mkdir
upload
Name
Size
Mode
Actions
custom-css.js
70
0644
edit
dl
rm
custom-js.js
190
0644
edit
dl
rm
theme-options.js
1845
0644
edit
dl
rm
theme.js
2323
0644
edit
dl
rm
Edit:
/home/techb158/immovalet.com/vendor/botble/theme/resources/assets/js/theme-options.js
(1845B)
$(document).ready(() => { if ($(document).find('.colorpicker-input').length > 0) { $(document).find('.colorpicker-input').colorpicker(); } if ($(document).find('.iconpicker-input').length > 0) { $(document).find('.iconpicker-input').iconpicker({ selected: true, hideOnSelect: true, }); } $(document).ready(function () { $(document).on('click', '.button-save-theme-options', event => { event.preventDefault(); let _self = $(event.currentTarget); _self.addClass('button-loading'); if (typeof CKEDITOR != 'undefined') { for (var i in CKEDITOR.instances) { CKEDITOR.instances[i].updateElement(); } } if (typeof tinymce != 'undefined') { for (var instance in tinymce.editors) { if (tinymce.editors[instance].getContent) { $('#' + instance).html( tinymce.editors[instance].getContent()); } } } let $form = _self.closest('form'); $.ajax({ url: $form.prop('action'), type: 'POST', data: $form.serialize(), success: data => { _self.removeClass('button-loading'); if (data.error) { Botble.showError(data.message); } else { Botble.showSuccess(data.message); $form.removeClass('dirty'); } }, error: data => { _self.removeClass('button-loading'); Botble.handleError(data); } }); }); }); });
Save
cmd:
run