From b512432076931b1e164f895c117e104887a8b22e Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 22 Jun 2021 14:57:18 -0700 Subject: [PATCH] msgtplui - Move per-tab action-buttons into tab-bar. More consistent code-style. --- ext/msgtplui/ang/msgtplui/Edit.html | 79 ++++++++++++++++------------- ext/msgtplui/ang/msgtplui/Edit.js | 3 +- 2 files changed, 46 insertions(+), 36 deletions(-) diff --git a/ext/msgtplui/ang/msgtplui/Edit.html b/ext/msgtplui/ang/msgtplui/Edit.html index 8a12bf2f5d..68d69164a7 100644 --- a/ext/msgtplui/ang/msgtplui/Edit.html +++ b/ext/msgtplui/ang/msgtplui/Edit.html @@ -22,44 +22,53 @@
- - +
-
-
- - - - -
-
diff --git a/ext/msgtplui/ang/msgtplui/Edit.js b/ext/msgtplui/ang/msgtplui/Edit.js index 654f670f16..c8c2fbd0c2 100644 --- a/ext/msgtplui/ang/msgtplui/Edit.js +++ b/ext/msgtplui/ang/msgtplui/Edit.js @@ -178,7 +178,8 @@ $ctrl.switchTab = function switchTab(tgt) { $ctrl.tab = tgt; - $('html, body').animate({scrollTop: $("a[name=msgtplui-tabs]").offset().top}, 200); + // Experimenting with action buttons in the tab-bar. This makes the scroll unnecessary. + // $('html, body').animate({scrollTop: $("a[name=msgtplui-tabs]").offset().top - $('#civicrm-menu').height()}, 200); }; $ctrl.hasDraft = function hasDraft() { -- 2.25.1