From 0bc40eed25f8f518f27ffc35edb2ec3630415d32 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Wed, 22 Jan 2014 19:43:47 +0200 Subject: [PATCH] Start updating the templates with the new markup --- converse.css | 3 --- dragresize/dragresize_commented.js | 1 + mockup.html | 19 +++++++-------- src/templates/chatbox.html | 35 +++++++++++++++------------- src/templates/controlbox.html | 11 +++++---- src/templates/controlbox_toggle.html | 4 ++-- 6 files changed, 38 insertions(+), 35 deletions(-) diff --git a/converse.css b/converse.css index edf0397f0..2c376b089 100644 --- a/converse.css +++ b/converse.css @@ -359,9 +359,6 @@ span.spinner.hor_centered { background-color: rgba(83, 144, 200, 100); padding: 4px 8px; margin-right: 5px; -} - -#toggle-controlbox a { color: white; } diff --git a/dragresize/dragresize_commented.js b/dragresize/dragresize_commented.js index 18b3fee29..08d8d74c1 100644 --- a/dragresize/dragresize_commented.js +++ b/dragresize/dragresize_commented.js @@ -154,6 +154,7 @@ DragResize.prototype.mouseDown = function(e) { while (elm) { // Loop up the DOM looking for matching elements. Remember one if found. if (elm.className) { + if (!newHandle && (hRE.test(elm.className))) newHandle = elm; if (isElement(elm)) { newElement = elm; break } } elm = elm.parentNode; diff --git a/mockup.html b/mockup.html index 2b570637a..686cdc118 100644 --- a/mockup.html +++ b/mockup.html @@ -63,19 +63,19 @@
- + + Toggle Chat + +
-
+
@@ -89,14 +89,13 @@
-
+
@@ -242,7 +241,7 @@
-
+
@@ -319,7 +318,7 @@
-
+
@@ -394,7 +393,7 @@
-
+
diff --git a/src/templates/chatbox.html b/src/templates/chatbox.html index 2937a6cbc..4eca76a4f 100644 --- a/src/templates/chatbox.html +++ b/src/templates/chatbox.html @@ -1,17 +1,20 @@ -
- - -
{{ fullname }}
-
-

+

+
+ +
+ + {[ if (show_toolbar) { ]} +
    + {[ } ]} +