Rename extension (ang `msgtplui` => `crmMsgadm`, hyphen-form)
authorTim Otten <totten@civicrm.org>
Fri, 24 Sep 2021 20:51:40 +0000 (13:51 -0700)
committerTim Otten <totten@civicrm.org>
Fri, 24 Sep 2021 21:16:43 +0000 (14:16 -0700)
ext/msgtplui/ang/msgtplui.css
ext/msgtplui/ang/msgtplui/Edit.html
ext/msgtplui/ang/msgtplui/Edit.js
ext/msgtplui/ang/msgtplui/EditContent.js

index 362005623b67e09f9e92bb9b711c9d37023e6023..db9eddc58cf3fba62c27dda81965f81a3ba15b5f 100644 (file)
@@ -1,3 +1,3 @@
-.ui-dialog.msgtplui-dialog .ui-dialog-titlebar {
+.ui-dialog.crm-msgadm-dialog .ui-dialog-titlebar {
   display:none;
 }
index d21460b6d0b917e18a3d787b429ae92ae4c62c08..f7782aebcd9cc625a3305944d327bafbe005a7f3 100644 (file)
@@ -20,7 +20,7 @@
       <!-- TODO: Pretty name -->
     </div>
 
-    <a name="msgtplui-tabs"></a>
+    <a name="crm-msgadm-tabs"></a>
     <div class="panel panel-info">
       <div class="panel-heading" role="navigation">
         <ul class="nav nav-pills">
@@ -67,8 +67,8 @@
         </ul>
       </div>
       <div class="panel-body">
-        <msgtplui-edit-content options="{record: $ctrl.records[$ctrl.tab], tokenList: $ctrl.tokenList, disabled: true}" ng-if="$ctrl.tab==='original'"></msgtplui-edit-content>
-        <msgtplui-edit-content options="{record: $ctrl.records[$ctrl.tab], tokenList: $ctrl.tokenList}" ng-if="$ctrl.tab!=='original'"></msgtplui-edit-content>
+        <crm-msgadm-edit-content options="{record: $ctrl.records[$ctrl.tab], tokenList: $ctrl.tokenList, disabled: true}" ng-if="$ctrl.tab==='original'"></crm-msgadm-edit-content>
+        <crm-msgadm-edit-content options="{record: $ctrl.records[$ctrl.tab], tokenList: $ctrl.tokenList}" ng-if="$ctrl.tab!=='original'"></crm-msgadm-edit-content>
       </div>
     </div>
 
index 34ffe15b334398b838f652259396698a2adb6ec1..98358361c51835de8b11140415698211a9f54cf4 100644 (file)
     $ctrl.switchTab = function switchTab(tgt) {
       $ctrl.tab = tgt;
       // 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);
+      // $('html, body').animate({scrollTop: $("a[name=crm-msgadm-tabs]").offset().top - $('#civicrm-menu').height()}, 200);
     };
     $ctrl.allowDraft = function allowDraft() {
       return !!$ctrl.lang;
 
         var model = angular.extend({}, defaults, args);
         var options = CRM.utils.adjustDialogDefaults({
-          dialogClass: 'msgtplui-dialog',
+          dialogClass: 'crm-msgadm-dialog',
           autoOpen: false,
           height: '90%',
           width: '90%'
index a3538b64993be46a917e22bc14b78dd738c8ce09..98e555b75208c59aa38da9076d89ba59f495e544 100644 (file)
@@ -36,7 +36,7 @@
         };
         var options = CRM.utils.adjustDialogDefaults({
           // show: {effect: 'slideDown'},
-          dialogClass: 'msgtplui-dialog',
+          dialogClass: 'crm-msgadm-dialog',
           autoOpen: false,
           height: '90%',
           width: '90%'