[Rt-commit] rt branch, 4.4.0-releng, updated. rt-4.4.0rc2-1-gf968229
Shawn Moore
shawn at bestpractical.com
Tue Nov 24 14:08:01 EST 2015
The branch, 4.4.0-releng has been updated
via f9682294d772799aa23ecb44948a3bbea0282b30 (commit)
from 5f681914c2d6762de796fc22db90dcde70e2ad94 (commit)
Summary of changes:
share/html/Ticket/Update.html | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit f9682294d772799aa23ecb44948a3bbea0282b30
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Tue Nov 24 19:06:51 2015 +0000
Handle non-ckeditor for syncing scrips
Fixes: I#31507
diff --git a/share/html/Ticket/Update.html b/share/html/Ticket/Update.html
index 5cf484d..b04f023 100644
--- a/share/html/Ticket/Update.html
+++ b/share/html/Ticket/Update.html
@@ -204,7 +204,9 @@
<script type="text/javascript">
jQuery( function() {
var updateScrips = function() {
- CKEDITOR.instances['UpdateContent'].updateElement();
+ if (CKEDITOR.instances && CKEDITOR.instances['UpdateContent']) {
+ 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'));
@@ -231,7 +233,14 @@ jQuery( function() {
);
};
updateScrips();
- CKEDITOR.instances['UpdateContent'].on('blur', updateScrips );
+
+ if (CKEDITOR.instances && CKEDITOR.instances['UpdateContent']) {
+ CKEDITOR.instances['UpdateContent'].on('blur', updateScrips );
+ }
+ else {
+ jQuery('#UpdateContent').on('blur', updateScrips );
+ }
+
jQuery("#ticket-update-metadata :input, #UpdateCc, #UpdateBcc").change( updateScrips );
});
</script>
-----------------------------------------------------------------------
More information about the rt-commit
mailing list