File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
indigo_app/static/javascript/indigo/views Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 142
142
if ( elements . length ) {
143
143
this . onTextElementParsed ( elements ) ;
144
144
this . closeTextEditor ( ) ;
145
- } else if ( this . xmlElement . parentElement . tagName === 'portionBody' ) {
145
+ } else if ( this . xmlElement . parentNode . tagName === 'portionBody' ) {
146
146
alert ( $t ( 'You cannot delete the whole provision in provision editing mode.' ) ) ;
147
147
} else if ( confirm ( $t ( 'Go ahead and delete this provision from the document?' ) ) ) {
148
148
this . parent . removeFragment ( this . editingXmlElement ) ;
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ class AknTextEditor {
136
136
let newElement = $ . parseXML ( xml ) ;
137
137
138
138
// if the top-level eId changed in provision mode, reload the page when saving later (just set the flag here)
139
- if ( this . xmlElement . parentElement . tagName === 'portionBody' ) {
139
+ if ( this . xmlElement . parentNode . tagName === 'portionBody' ) {
140
140
// set it back to false if the eId is changed back before saving too
141
141
this . reloadOnSave = newElement . firstChild . firstChild . getAttribute ( 'eId' ) !== Indigo . Preloads . provisionEid ;
142
142
}
You can’t perform that action at this time.
0 commit comments