Commit 802d3f64 authored by Robert Lyon's avatar Robert Lyon

Bug 1638733: Static pages save - need to check if element is present

On institution static pages we have the 'use default' option but that is not present on the site static pages So we need to check for it correctly in javascript behatnotneeded Change-Id: Ifb063083dc5e77f890441f269478d3e9e851be4e Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz> (cherry picked from commit de61fbcc)
parent 6f3b2509
......@@ -46,7 +46,7 @@ function updateWYSIWYGText() {
function updateSiteDefault(changed) {
changedCheckbox = (changed) ? true : false;
var editor = jQuery('#editsitepage_pagetext_container .mce-tinymce');
if ($('editsitepage_pageusedefault').checked == true) {
if ($('editsitepage_pageusedefault') && $('editsitepage_pageusedefault').checked == true) {
tinyMCE.activeEditor.getBody().setAttribute('contenteditable', false);
$('changecheckboxdiv').style.display = 'block';
$('changecheckboxdiv').style.zIndex = '1';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment