PHP Classes

File: public/build/js/bundle.js

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis CMS Page JavaScript and CSS Editor   public/build/js/bundle.js   Download  
File: public/build/js/bundle.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Melis CMS Page JavaScript and CSS Editor
Add custom assets to a site using Melis CMS
Author: By
Last change:
Date: 2 years ago
Size: 2,411 bytes
 

Contents

Class file image Download
$(function(){$body=$("body");var e='<div id="loader" class="overlay-loader"><img class="loader-icon spinning-cog" src="/MelisCore/assets/images/cog12.svg" data-cog="cog12"></div>';function t(t,i){var s=activeTabId.split("_")[0];$("#"+s+"_id_meliscms_tool_sites_script_exceptions").append(e),$.ajax({type:"POST",url:"/melis/MelisCmsPageScriptEditor/MelisCmsPageScriptEditorToolSiteEdition/saveSiteScriptException",data:{siteId:s,operation:t,tool_site_mcse_page_id:i},dataType:"json",encode:!0}).done(function(e){$("#"+s+"_id_meliscms_tool_sites_script_exceptions #loader").remove(),e.success?(melisHelper.melisOkNotification(e.textTitle,e.textMessage),$("#"+s+"_id_meliscms_tool_sites_script_content").find("#"+s+"tool_site_exception_page_id").removeClass("tool-site-page-exception-error"),melisHelper.zoneReload(s+"_id_meliscms_tool_sites_script_exceptions","meliscms_tool_sites_script_exceptions",{siteId:s}),$("#"+s+"_id_meliscms_tool_sites_script_content").find("#"+s+"tool_site_exception_page_id").val("")):(melisHelper.melisKoNotification(e.textTitle,e.textMessage,e.errors),$("#"+s+"_id_meliscms_tool_sites_script_content").find("#"+s+"tool_site_exception_page_id").addClass("tool-site-page-exception-error"))}).fail(function(){alert(translations.tr_meliscore_error_message)})}$body.on("click",".melis-cms-page-script-checkbox input[type=checkbox]",function(){$(this).parent().find(".cbmask-inner").toggleClass("cb-active")}),$body.on("click",".btnDeletePageException",function(e){var i=null,s=function(){var e=activeTabId.split("_")[0],t=null;$("#"+e+"MelisCmsPageScriptEditorScriptExceptionsTable").length>0&&(t=$("#"+e+"MelisCmsPageScriptEditorScriptExceptionsTable").DataTable());return t}(),o=$(this).parents("tr").attr("class");i="child"==o?s.row($(this).closest("tr").prev()[0]).data().mcse_page_id:s.row($(this).closest("tr")).data().mcse_page_id,melisCoreTool.confirm(translations.tr_meliscmspagescripteditor_common_label_yes,translations.tr_meliscmspagescripteditor_common_label_no,translations.tr_meliscmspagescripteditor_delete_exception_btn_tooltip,translations.tr_meliscmspagescripteditor_delete_exception_btn_confirm,function(){t("delete",i)})}),$body.on("click",".add_tool_site_script_exception_btn",function(e){var i=activeTabId.split("_")[0];t("add",$("#"+i+"tool_site_exception_page_id").val())}),window.initSiteId=function(e){var t=activeTabId.split("_")[0];isNaN(t)||(e.siteId=t)}});