PATH:
home
/
lab2454c
/
costbloc.com
/
Modules
/
Blog
/
Resources
/
assets
/
js
"use strict";$(".main-body .page-wrapper").find("#page-container").length&&($(document).ready(function(){$("#summernote").summernote({tabsize:2,height:120,blockquoteBreakingLevel:2,styleTags:["p",{title:"Blockquote",tag:"blockquote",className:"blockquote",value:"blockquote"},"pre","h1","h2","h3","h4","h5","h6"],toolbar:[["style",["style"]],["font",["bold","underline","clear"]],["color",["color"]],["para",["ul","ol","paragraph"]],["table",["table"]],["insert",["link"]],["view",["codeview","help"]]],codeviewFilter:!0,codeviewFilterRegex:summernote_regex,callbacks:{onInit:function(){$("<div class=\"note-file btn-group note-btn-group\"><button id=\"makeSnote\" type=\"button\" class=\"note-btn editor-img-btn btn btn-default btn-sm has-media-manager\" data-val=\"single\" tabindex=\"-1\" title=\"\" aria-label=\"Picture\" data-original-title=\"Picture\" aria-describedby=\"tooltip682862\"><i class=\"note-icon-picture\"></i></button></div>").appendTo($(".note-toolbar"))},onChange:function(){}}})}),$(document).on("file-attached",".has-thumbnail",function(a,b){$("#blog-image").html(b.html)}),$(document).on("file-attached",".editor-img-btn",function(a,b){b.data.forEach(a=>{$("#summernote").summernote("pasteHTML"," <span><img src=\""+a.url+"\" style=\"width: 200px;\"/><br></span>")})}),$(document).on("keyup","#title",function(){var a=this.value.replace(/[&\/\\#@,+()$~%.'":*?<>{}]/g,"");$("#slug").val(a.trim().toLowerCase().replace(/\s/g,"-")),$(this).siblings(".error").remove(),$("#slug").siblings(".error").remove()}),$(document).on("keyup","#slug",function(){var a=this.value.replace(/[&\/\\#@,+()$~%.'":*?<>{}]/g,"");$("#slug").val(a.trim().toLowerCase().replace(/\s/g,"-"))}),$(document).on("keyup",".note-editable",function(){$(this.closest(".form-group")).find(".error").remove()}),$(document).on("keyup","#summary",function(){$(this).siblings(".error").remove()}),$(document).on("submit","#blogForm",function(){$("#summernote").summernote("codeview.isActivated")&&$("#summernote").summernote("codeview.deactivate")}));function formValidation(){let a=!0,b=["#category_id","#title","#slug","#summernote","#summary"];for(const c in b)""==$(b[c]).val().length&&0==$(b[c]).siblings(".error").length?($(b[c]).parent().append(` <label class="error">${jsLang("This field is required.")}</label> `),a=!1):""==$(b[c]).val().length&&(a=!1);return!1!=a&&($("#btnSubmit").text(jsLang("Creating")).append(`<div class="spinner-border spinner-border-sm ml-2" role="status"></div>`).addClass("disabled-btn"),!0)}
[+]
..
[-] blog-category.min.js
[edit]
[-] blog.js
[edit]
[-] blog-category.js
[edit]
[-] blog.min.js
[edit]