[icinga-checkins] icinga.org: icinga-web/master: * Format fix (tabs -> spaces) in StaticContentSuccess

git at icinga.org git at icinga.org
Thu Feb 16 14:27:55 CET 2012


Module: icinga-web
Branch: master
Commit: 76386a0c05213097fef3861d9ee9e49867e20e67
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=76386a0c05213097fef3861d9ee9e49867e20e67

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Thu Feb 16 14:25:17 2012 +0100

* Format fix (tabs -> spaces) in StaticContentSuccess

---

 .../templates/System/StaticContentSuccess.php      |  188 ++++++++++----------
 1 files changed, 94 insertions(+), 94 deletions(-)

diff --git a/app/modules/Cronks/templates/System/StaticContentSuccess.php b/app/modules/Cronks/templates/System/StaticContentSuccess.php
index 9901454..594587c 100755
--- a/app/modules/Cronks/templates/System/StaticContentSuccess.php
+++ b/app/modules/Cronks/templates/System/StaticContentSuccess.php
@@ -1,105 +1,105 @@
 <?php
-	$template = $rd->getParameter('template');
-	$render = $rd->getParameter('render', 'MAIN');
-	$cmpid = $rd->getParameter('cmpid');
+$template = $rd->getParameter('template');
+$render = $rd->getParameter('render', 'MAIN');
+$cmpid = $rd->getParameter('cmpid');
 ?>
 <script type="text/javascript">
-Cronk.util.initEnvironment(<?php CronksRequestUtil::echoJsonString($rd); ?>, function() {
-		var CE = this;
-		
-		var p = (function() {
-			var pub = {};
-			var panel = null;
-			var pc = null;
-			var template_name = '<?php echo $template; ?>';
-			var url = "<?php echo $ro->gen('modules.cronks.staticContent.content', array('template' => $template, 'render' => $render, 'cmpid' => $cmpid)); ?>";
-			
-			url = url.replace(/&/g, '&');
-			
-			Ext.apply(pub, {
-				
-				init : function() {
-					if (!panel) {
-						
-						panel = new Ext.Panel({
-							
-							border: false,
-							autoScroll: true,
-							id: CE.cmpid,
-							
-							// Options for the updater
-							autoLoad: {
-								url: url,
-								scripts: true,
-								method: 'get',
-								
-								text: String.format(_('Loading TO "{0}" ...'), template_name),
-								
-								/*
-								 * @todo: make timeout configurable
-								 */
-								timeout: 600 // Very long for too much data
-							},
-							
-							// Building the toolbar
-							tbar: {
-								items: [{
-									text: _('Refresh'),
-									iconCls: 'icinga-icon-arrow-refresh',
-									tooltip: _('Refresh the data in the grid'),
-									handler: function(oBtn, e) { panel.getUpdater().refresh(); },
-                                    
-                                }, {
-									text: _('Settings'),
-									iconCls: 'icinga-icon-cog',
-									toolTip: _('Tactical overview settings'),
-									menu: {
-										items: [{
-											text: _('Auto refresh'),
-											checked: true,
-											checkHandler: function(checkItem, checked) {
-												if (checked == true) {
-													panel.trefresh = AppKit.getTr().start({
-														run: function() {
-															this.getUpdater().refresh();
-														},
-														interval: 120000,
-														scope: panel
-													});
-												}
-												else {
-													AppKit.getTr().stop(panel.trefresh);
-													delete panel.trefresh;
-												}
-											}
-
-										}]
-									}
-								}]
-							}
-						});
-
-						CE.add(panel);
-						CE.doLayout();
+    Cronk.util.initEnvironment(<?php CronksRequestUtil::echoJsonString($rd); ?>, function() {
+        var CE = this;
+
+        var p = (function() {
+            var pub = {};
+            var panel = null;
+            var pc = null;
+            var template_name = '<?php echo $template; ?>';
+            var url = "<?php echo $ro->gen('modules.cronks.staticContent.content', array('template' => $template, 'render' => $render, 'cmpid' => $cmpid)); ?>";
+
+            url = url.replace(/&/g, '&');
+
+            Ext.apply(pub, {
+
+                init : function() {
+                    if (!panel) {
+
+                        panel = new Ext.Panel({
+
+                            border: false,
+                            autoScroll: true,
+                            id: CE.cmpid,
+
+                            // Options for the updater
+                            autoLoad: {
+                                url: url,
+                                scripts: true,
+                                method: 'get',
+
+                                text: String.format(_('Loading TO "{0}" ...'), template_name),
+
+                                /*
+                                 * @todo: make timeout configurable
+                                 */
+                                timeout: 600 // Very long for too much data
+                            },
+
+                            // Building the toolbar
+                            tbar: {
+                                items: [{
+                                        text: _('Refresh'),
+                                        iconCls: 'icinga-icon-arrow-refresh',
+                                        tooltip: _('Refresh the data in the grid'),
+                                        handler: function(oBtn, e) { panel.getUpdater().refresh(); },
+
+                                    }, {
+                                        text: _('Settings'),
+                                        iconCls: 'icinga-icon-cog',
+                                        toolTip: _('Tactical overview settings'),
+                                        menu: {
+                                            items: [{
+                                                    text: _('Auto refresh'),
+                                                    checked: true,
+                                                    checkHandler: function(checkItem, checked) {
+                                                        if (checked == true) {
+                                                            panel.trefresh = AppKit.getTr().start({
+                                                                run: function() {
+                                                                    this.getUpdater().refresh();
+                                                                },
+                                                                interval: 120000,
+                                                                scope: panel
+                                                            });
+                                                        }
+                                                        else {
+                                                            AppKit.getTr().stop(panel.trefresh);
+                                                            delete panel.trefresh;
+                                                        }
+                                                    }
+
+                                                }]
+                                        }
+                                    }]
+                            }
+                        });
+
+                        CE.add(panel);
+                        CE.doLayout();
                         //refresh
-						panel.trefresh = AppKit.getTr().start({
+                        panel.trefresh = AppKit.getTr().start({
                             run: function() {
                                 this.getUpdater().refresh();
                             },
                             interval: 120000,
                             scope: panel
                         });
-						return true;						
-					}
-					
-					return false;
-				}
-				
-			});
-			
-			return pub;
-		})();
-	
-		p.init();
-});
+                        return true;
+                    }
+
+                    return false;
+                }
+
+            });
+
+            return pub;
+        })();
+
+        p.init();
+    });
 </script>
\ No newline at end of file





More information about the icinga-checkins mailing list