From 2720aebf0459ec7f070d3d015632fb8f4d5d89f9 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Fri, 4 Sep 2015 17:31:16 -0400 Subject: [PATCH] Initial popup view for messages --- UI/Common/UIxPageFrame.m | 9 +- UI/MailerUI/product.plist | 4 + UI/Templates/MailerUI/UIxMailPopupView.wox | 45 ++-- UI/Templates/MailerUI/UIxMailViewTemplate.wox | 26 ++- UI/WebServerResources/Gruntfile.js | 5 +- UI/WebServerResources/js/Common/Common.app.js | 3 +- .../js/Common/navController.js | 1 + .../js/Mailer/Mailer.popup.js | 215 ++++++++++++++++++ .../js/Mailer/MessageController.js | 35 ++- UI/WebServerResources/scss/views/_view.scss | 14 ++ 10 files changed, 316 insertions(+), 41 deletions(-) create mode 100644 UI/WebServerResources/js/Mailer/Mailer.popup.js diff --git a/UI/Common/UIxPageFrame.m b/UI/Common/UIxPageFrame.m index 1867b88c6..0f8a8cb0c 100644 --- a/UI/Common/UIxPageFrame.m +++ b/UI/Common/UIxPageFrame.m @@ -249,14 +249,7 @@ - (NSString *) commonLocalizableStrings { - NSString *rc; - - if (isPopup) - rc = @""; - else - rc = [NSString stringWithFormat: @"var clabels = %@;", [self _stringsForFramework: nil]]; - - return rc; + return [NSString stringWithFormat: @"var clabels = %@;", [self _stringsForFramework: nil]]; } - (NSString *) productLocalizableStrings diff --git a/UI/MailerUI/product.plist b/UI/MailerUI/product.plist index d6c9fb8eb..412850d6b 100644 --- a/UI/MailerUI/product.plist +++ b/UI/MailerUI/product.plist @@ -351,6 +351,10 @@ // protectedBy = "View"; // pageName = "UIxMailViewTemplate"; // }; + UIxMailPopupView = { + protectedBy = "View"; + pageName = "UIxMailPopupView"; + }; UIxMailEditor = { protectedBy = "View"; pageName = "UIxMailEditor"; diff --git a/UI/Templates/MailerUI/UIxMailPopupView.wox b/UI/Templates/MailerUI/UIxMailPopupView.wox index f3d17c577..a2c10b94b 100644 --- a/UI/Templates/MailerUI/UIxMailPopupView.wox +++ b/UI/Templates/MailerUI/UIxMailPopupView.wox @@ -1,29 +1,32 @@ - + - - -