[FIX] fp misindentation
authorAntony Lesuisse <al@openerp.com>
Fri, 13 Jul 2012 15:01:56 +0000 (17:01 +0200)
committerAntony Lesuisse <al@openerp.com>
Fri, 13 Jul 2012 15:01:56 +0000 (17:01 +0200)
bzr revid: al@openerp.com-20120713150156-b07dd3qeff5xi3em

addons/web/static/src/js/chrome.js

index 67d0299..f7b701f 100644 (file)
@@ -86,7 +86,7 @@ instance.web.Dialog = instance.web.Widget.extend({
         if (this.dialog_options.autoOpen) {
             this.open();
         } else {
-            test = instance.web.dialog(this.$element, this.get_options());
+            instance.web.dialog(this.$element, this.get_options());
         }
     },
     get_options: function(options) {
@@ -145,9 +145,9 @@ instance.web.Dialog = instance.web.Widget.extend({
         _.each(this.getChildren(), function(el) {
             el.destroy();
         });
-    if (! this.isDestroyed()) {
-        this.$element.dialog('destroy');
-    }
+        if (! this.isDestroyed()) {
+            this.$element.dialog('destroy');
+        }
         this._super();
     }
 });
@@ -212,11 +212,11 @@ instance.web.CrashManager = instance.web.CallbackEnabled.extend({
         dialog.$element.html(QWeb.render('CrashManager.error', {session: instance.connection, error: error}));
     },
     on_javascript_exception: function(exception) {
-    this.on_traceback({
-        type: _t("Client Error"),
-        message: exception,
-        data: {debug: ""}
-    });
+        this.on_traceback({
+            type: _t("Client Error"),
+            message: exception,
+            data: {debug: ""}
+        });
     },
 });