PHP Classes

File: public/assets/js/demo/email-compose.demo.js

Recommend this page to a friend!
  Classes of Wang   Tagydes   public/assets/js/demo/email-compose.demo.js   Download  
File: public/assets/js/demo/email-compose.demo.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Tagydes
E-commerce Web administration panel and API
Author: By
Last change:
Date: 1 year ago
Size: 1,099 bytes
 

Contents

Class file image Download
/* Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 4 Version: 4.3.0 Author: Sean Ngu Website: http://www.seantheme.com/color-admin-v4.3/admin/ */ var handleEmailToInput = function() { $('#email-to').tagit({ availableTags: ["c++", "java", "php", "javascript", "ruby", "python", "c"] }); }; var handleEmailContent = function() { $('#wysihtml5').wysihtml5(); }; var handleAddCc = function() { $(document).on('click', '[data-click="add-cc"]', function(e) { e.preventDefault(); var targetName = $(this).attr('data-name'); var targetId = 'email-cc-'+ targetName +''; var targetHtml = ''+ ' <div class="email-to">'+ ' <label class="control-label">'+ targetName +':</label>'+ ' <ul id="'+ targetId +'" class="primary line-mode"></ul>'+ ' </div>'; $('[data-id="extra-cc"]').append(targetHtml); $('#' + targetId).tagit(); $(this).remove(); }); }; var EmailCompose = function () { "use strict"; return { //main function init: function () { handleEmailToInput(); handleEmailContent(); handleAddCc(); } }; }();