[Rt-commit] rt branch, 4.4/preview-non-richtext, created. rt-4.2.10-108-gf992014
Alex Vandiver
alexmv at bestpractical.com
Tue Mar 17 22:03:10 EDT 2015
The branch, 4.4/preview-non-richtext has been created
at f99201427830653db137edc37dca615d43d51a5f (commit)
- Log -----------------------------------------------------------------
commit f99201427830653db137edc37dca615d43d51a5f
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Tue Mar 17 22:02:48 2015 -0400
Do not assume in the preview code that the rich text editor is in use
Doing so triggers a runtime error (due to the lack of CKEDITOR object)
and thus no recipients appear.
diff --git a/share/html/Ticket/Update.html b/share/html/Ticket/Update.html
index f0b8130..1f03ba2 100644
--- a/share/html/Ticket/Update.html
+++ b/share/html/Ticket/Update.html
@@ -214,7 +214,9 @@
<script type="text/javascript">
jQuery( function() {
var updateScrips = function() {
- CKEDITOR.instances['UpdateContent'].updateElement();
+ if (jQuery('#UpdateContent').hasClass("richtext")) {
+ CKEDITOR.instances['UpdateContent'].updateElement();
+ }
var syncCheckboxes = function(ev) {
var target = ev.target;
jQuery("input[name=TxnSendMailTo]").filter( function() { return this.value == target.value; } ).prop("checked",jQuery(target).prop('checked'));
@@ -241,7 +243,9 @@ jQuery( function() {
);
};
updateScrips();
- CKEDITOR.instances['UpdateContent'].on('blur', updateScrips );
+ if (jQuery('#UpdateContent').hasClass("richtext")) {
+ CKEDITOR.instances['UpdateContent'].on('blur', updateScrips );
+ }
jQuery("#ticket-update-metadata :input, #UpdateCc, #UpdateBcc").change( updateScrips );
});
</script>
-----------------------------------------------------------------------
More information about the rt-commit
mailing list