]> git.proxmox.com Git - pmg-gui.git/commitdiff
report: indentation cleanup
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 4 Jun 2020 06:21:46 +0000 (08:21 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 4 Jun 2020 06:22:19 +0000 (08:22 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
js/Subscription.js

index b539205961023991e9d02f61ff254680a14acfcd..aac0627b1abd01d95f4eb3d654c1c42da3dd0a10 100644 (file)
@@ -1,7 +1,7 @@
 /*global Blob,Proxmox*/
 Ext.define('PMG.SubscriptionKeyEdit', {
     extend: 'Proxmox.window.Edit',
-    
+
     title: gettext('Upload Subscription Key'),
     width: 300,
     autoLoad: true,
@@ -56,29 +56,29 @@ Ext.define('PMG.Subscription', {
            layout: 'fit',
            modal: true,
            buttons: [
-                       '->',
-                       {
-                           text: gettext('Download'),
-                           handler: function() {
-                               var fileContent = Ext.String.htmlDecode(reportWindow.getComponent('system-report-view').html);
-                               var fileName = getReportFileName();
-
-                               // Internet Explorer
-                               if (window.navigator.msSaveOrOpenBlob) {
-                                   navigator.msSaveOrOpenBlob(new Blob([fileContent]), fileName);
-                               } else {
-                                   var element = document.createElement('a');
-                                   element.setAttribute('href', 'data:text/plain;charset=utf-8,'
-                                     + encodeURIComponent(fileContent));
-                                   element.setAttribute('download', fileName);
-                                   element.style.display = 'none';
-                                   document.body.appendChild(element);
-                                   element.click();
-                                   document.body.removeChild(element);
-                               }
-                           }
+               '->',
+               {
+                   text: gettext('Download'),
+                   handler: function() {
+                       var fileContent = Ext.String.htmlDecode(reportWindow.getComponent('system-report-view').html);
+                       var fileName = getReportFileName();
+
+                       // Internet Explorer
+                       if (window.navigator.msSaveOrOpenBlob) {
+                           navigator.msSaveOrOpenBlob(new Blob([fileContent]), fileName);
+                       } else {
+                           var element = document.createElement('a');
+                           element.setAttribute('href', 'data:text/plain;charset=utf-8,'
+                             + encodeURIComponent(fileContent));
+                           element.setAttribute('download', fileName);
+                           element.style.display = 'none';
+                           document.body.appendChild(element);
+                           element.click();
+                           document.body.removeChild(element);
                        }
-               ],
+                   }
+               }
+           ],
            items: view
        });