forked from techjoomla/TJ-Notifications
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preview email facility in tjnotification techjoomla#65
- Loading branch information
Showing
11 changed files
with
187 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
-- | ||
-- Change table ENGINE; | ||
-- | ||
|
||
ALTER TABLE `#__tj_notification_providers` ENGINE = InnoDB; | ||
ALTER TABLE `#__tj_notification_templates` ENGINE = InnoDB; | ||
ALTER TABLE `#__tj_notification_user_exclusions` ENGINE = InnoDB; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
----Change table Key; | ||
|
||
ALTER TABLE `#__tj_notification_user_exclusions` CHANGE KEY `client1` (`client`(100),`provider`(50),`key`(100)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/** | ||
* @package TJNotifications | ||
* @subpackage com_tjnotifications | ||
* | ||
* @author Techjoomla <extensions@techjoomla.com> | ||
* @copyright Copyright (C) 2009 - 2019 Techjoomla. All rights reserved. | ||
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL | ||
*/ | ||
|
||
var template = { | ||
|
||
previewTemplate: function () { | ||
|
||
jQuery(document).on('click', 'button[data-target="#templatePreview"]', function () { | ||
|
||
jQuery('#show-info').hide(); | ||
|
||
if (typeof tinyMCE != "undefined") | ||
{ | ||
tinyMCE.execCommand('mceToggleEditor', false, 'jform_email_body'); | ||
} | ||
else if (typeof CodeMirror != "undefined") | ||
{ | ||
var editor = document.querySelector('.CodeMirror').CodeMirror; | ||
jQuery('#jform_email_body').html(editor.getValue()); | ||
} | ||
else | ||
{ | ||
jQuery('#show-info').show(); | ||
} | ||
|
||
jQuery('#previewTempl').empty(); | ||
jQuery('<style>').html(jQuery('#jform_template_css').val()).appendTo('#previewTempl'); | ||
jQuery('<div>').html(jQuery('#jform_email_body').val()).appendTo('#previewTempl'); | ||
}); | ||
|
||
jQuery('#templatePreview').on('hidden.bs.modal', function () { | ||
|
||
if (typeof tinyMCE != "undefined") | ||
{ | ||
tinyMCE.execCommand('mceToggleEditor', false, 'jform_email_body'); | ||
} | ||
|
||
jQuery('#previewTempl').empty(); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* @package TJNotifications | ||
* @subpackage com_tjnotifications | ||
* | ||
* @author Techjoomla <extensions@techjoomla.com> | ||
* @copyright Copyright (C) 2009 - 2019 Techjoomla. All rights reserved. | ||
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL | ||
*/ | ||
var template={previewTemplate:function(){jQuery(document).on("click",'button[data-target="#templatePreview"]',function(){if(jQuery("#show-info").hide(),"undefined"!=typeof tinyMCE)tinyMCE.execCommand("mceToggleEditor",!1,"jform_email_body");else if("undefined"!=typeof CodeMirror){var e=document.querySelector(".CodeMirror").CodeMirror;jQuery("#jform_email_body").html(e.getValue())}else jQuery("#show-info").show();jQuery("#previewTempl").empty(),jQuery("<style>").html(jQuery("#jform_template_css").val()).appendTo("#previewTempl"),jQuery("<div>").html(jQuery("#jform_email_body").val()).appendTo("#previewTempl")}),jQuery("#templatePreview").on("hidden.bs.modal",function(){"undefined"!=typeof tinyMCE&&tinyMCE.execCommand("mceToggleEditor",!1,"jform_email_body"),jQuery("#previewTempl").empty()})}}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters