aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/utils
diff options
context:
space:
mode:
authorYoav Schneiderman <yoav.schneiderman@intl.att.com>2020-01-02 14:37:13 +0200
committerYoav Schneiderman <yoav.schneiderman@intl.att.com>2020-01-02 15:29:03 +0200
commitb51ac2ce386fa1d5f9806dae6e177b18e293c61f (patch)
tree04890ec8096b39fc15e966823ef24b983cfcbbc4 /vid-webpack-master/src/app/shared/utils
parent9364e31c8bc851b7543b0c16846dc6ef3ccf41c3 (diff)
Template modal - Start from Scratch button + UT
Issue-ID: VID-739 Signed-off-by: Yoav Schneiderman <yoav.schneiderman@intl.att.com> Change-Id: Ie390a53714212d4d943789d14bb2fb51f7311277 Signed-off-by: Yoav Schneiderman <yoav.schneiderman@intl.att.com>
Diffstat (limited to 'vid-webpack-master/src/app/shared/utils')
-rw-r--r--vid-webpack-master/src/app/shared/utils/iframe.service.ts19
1 files changed, 10 insertions, 9 deletions
diff --git a/vid-webpack-master/src/app/shared/utils/iframe.service.ts b/vid-webpack-master/src/app/shared/utils/iframe.service.ts
index ab93d1ac8..e1ef59f83 100644
--- a/vid-webpack-master/src/app/shared/utils/iframe.service.ts
+++ b/vid-webpack-master/src/app/shared/utils/iframe.service.ts
@@ -6,19 +6,19 @@ export class IframeService {
addClassOpenModal(elementClassName: string) {
const parentBodyElement = parent.document.getElementsByClassName(elementClassName)[0];
- if (parentBodyElement) {
+ if (parentBodyElement) {
parentBodyElement.classList.add("modal-open");
}
}
removeClassCloseModal(elementClassName: string) {
const parentBodyElement = parent.document.getElementsByClassName(elementClassName)[0];
- if (parentBodyElement) {
+ if (parentBodyElement) {
parentBodyElement.classList.remove("modal-open");
}
}
- closeIframe(dialogService : DialogService, that){
+ closeIframe(dialogService: DialogService, that) {
this.removeClassCloseModal('content');
dialogService.removeDialog(that);
setTimeout(() => {
@@ -27,16 +27,17 @@ export class IframeService {
}
- addFullScreen(){
- let parentBodyElement = parent.document.getElementsByClassName('service-model-content')[0];
- if (parentBodyElement) {
+
+ addFullScreen() {
+ let parentBodyElement = parent.document.getElementsByClassName('service-model-content')[0];
+ if (parentBodyElement) {
parentBodyElement.classList.add("full-screen");
}
}
- removeFullScreen(){
- let parentBodyElement = parent.document.getElementsByClassName('service-model-content')[0];
- if (parentBodyElement) {
+ removeFullScreen() {
+ let parentBodyElement = parent.document.getElementsByClassName('service-model-content')[0];
+ if (parentBodyElement) {
parentBodyElement.classList.remove("full-screen");
}
}