-
Notifications
You must be signed in to change notification settings - Fork 41
Preview email facility in tjnotification #65 #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
punambaravkar
wants to merge
23
commits into
techjoomla:master
Choose a base branch
from
punambaravkar:email
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 11 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
1d69242
Preview email facility in tjnotification #65
punambaravkar 66c4db3
Preview email facility in tjnotification #65
punambaravkar f96c719
Preview email facility in tjnotification #65 #67
punambaravkar b3e911f
Merge remote-tracking branch 'upstream/master' into email
punambaravkar 591f884
Preview email facility in tjnotification #65 #67
punambaravkar 524466c
Preview email facility in tjnotification #65 #67
punambaravkar dfd12dd
Preview email facility in tjnotification
punambaravkar ea3ef4e
Preview email facility in tjnotification
punambaravkar 70444ad
Preview email facility in tjnotification
punambaravkar 3948c89
Preview email facility in tjnotification
punambaravkar 639dd38
Preview email facility in tjnotification
punambaravkar 665d9a5
Preview email facility in tjnotification
punambaravkar 82ae957
Preview email facility in tjnotification
punambaravkar b94af38
Preview email facility in tjnotification
punambaravkar e6f88cf
Preview email facility in tjnotification
punambaravkar a8aeb2f
Preview email facility in tjnotification
punambaravkar e0707e6
Preview email facility in tjnotification
punambaravkar ba9017e
Preview email facility in tjnotification
punambaravkar 255dc33
Task #154509 chore: Adding sample data for TJ-Notification template
punambaravkar 06bc4f0
Task #154509 chore: Adding sample data for TJ-Notification template
punambaravkar 248dec6
Task #154509 chore: Adding sample data for TJ-Notification template
punambaravkar 171a111
Preview email facility in tjnotification
punambaravkar 13b9bec
Preview email facility in tjnotification
punambaravkar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,40 @@ | ||
/** | ||
* @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 () { | ||
|
||
var url = new URL(window.location.href); | ||
var id= url.searchParams.get('id'); | ||
|
||
jQuery(document).on('click', 'button[data-target="#templatePreview"]', function () { | ||
|
||
jQuery.ajax({ | ||
url: Joomla.getOptions('system.paths').base + "/index.php?option=com_tjnotifications&task=notification.getSampleData&id=" + id, | ||
type: 'GET', | ||
success: function(data) { | ||
|
||
jQuery("#previewTempl").append(data); | ||
}, | ||
error: function(xhr, ajaxOptions, thrownError) {} | ||
}) | ||
|
||
}); | ||
jQuery('#templatePreview').on('hidden.bs.modal', function () { | ||
|
||
if (typeof tinyMCE != "undefined") | ||
punambaravkar marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
{ | ||
tinyMCE.execCommand('mceToggleEditor', false, 'jform_body'); | ||
} | ||
|
||
jQuery('#previewTempl').empty(); | ||
}); | ||
} | ||
} |
This file contains hidden or 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(){var e=new URL(window.location.href).searchParams.get("id");jQuery(document).on("click",'button[data-target="#templatePreview"]',function(){jQuery.ajax({url:Joomla.getOptions("system.paths").base+"/index.php?option=com_tjnotifications&task=notification.getSampleData&id="+e,type:"GET",success:function(e){jQuery("#previewTempl").append(e)},error:function(e,t,n){}})}),jQuery("#templatePreview").on("hidden.bs.modal",function(){"undefined"!=typeof tinyMCE&&tinyMCE.execCommand("mceToggleEditor",!1,"jform_body"),jQuery("#previewTempl").empty()})}}; |
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.