Minor tweaks.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 27 Feb 2011 12:43:49 +0000 (13:43 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 27 Feb 2011 12:43:49 +0000 (13:43 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
htdocs/javascript/xorg.js

index 1c18fbe..7cd95ae 100644 (file)
@@ -1041,6 +1041,7 @@ function sendTestEmail(token, hruid)
             console.log(options);
             options.loadingClass = $this.css('text-align') === 'right' ? options.loadingClassRight
                                                                        : options.loadingClassLeft;
+            $this.attr('autocomplete', 'off');
 
             $popup = buildPopup(this, options.destination, function() {
                 options.selectAction.apply(this, arguments);
@@ -1157,10 +1158,10 @@ function sendTestEmail(token, hruid)
             if (typeof text === 'string') {
                 args.push(text);
                 if (width) {
-                    args.push(width);
+                    args.push(WIDTH, width);
                 }
                 if (height) {
-                    args.push(height);
+                    args.push(HEIGHT, height);
                 }
             } else {
                 for (key in text) {