Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
f2c354b7
Commit
f2c354b7
authored
Jan 22, 2014
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set a class 'minimized' instead of hardcoding style
parent
b189e6df
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
converse.css
converse.css
+4
-0
mockup.html
mockup.html
+8
-7
No files found.
converse.css
View file @
f2c354b7
...
...
@@ -1268,6 +1268,10 @@ form.add-xmpp-contact input {
height
:
324px
;
}
.box-flyout.minimized
{
height
:
auto
;
}
.chatbox
.box-flyout
{
width
:
200px
;
}
...
...
mockup.html
View file @
f2c354b7
...
...
@@ -26,9 +26,9 @@
handles
:
[
'
tm
'
],
});
// Next, you must define
two functions, isElement and isHandle. These are passed
//
a given DOM element, and must "return true" if the element in question is a
//
draggable element or draggable handle.
Here, I'm checking for the CSS classname
// Next, you must define
isElement. These are passed a given DOM element, and must
//
"return true" if the element in question is a draggable element.
// Here, I'm checking for the CSS classname
// of the elements, but you have have any combination of conditions you like:
dragresize
.
isElement
=
function
(
elm
)
{
if
(
elm
.
className
&&
elm
.
className
.
indexOf
(
'
box-flyout
'
)
>
-
1
)
return
true
;
...
...
@@ -487,12 +487,13 @@ $(document).ready(function () {
}
else
{
$grandparent
.
find
(
'
div.chat-content
'
).
slideToggle
(
300
);
}
var
flyout
=
$grandparent
.
find
(
'
.box-flyout
'
)
[
0
]
;
if
(
flyout
.
style
.
height
==
'
auto
'
)
{
flyout
.
style
.
height
=
'
324px
'
;
var
flyout
=
$grandparent
.
find
(
'
.box-flyout
'
);
if
(
flyout
.
hasClass
(
'
minimized
'
)
)
{
flyout
.
removeClass
(
'
minimized
'
)
;
}
else
{
flyout
.
style
.
height
=
'
auto
'
;
flyout
.
addClass
(
'
minimized
'
)
;
}
$
(
ev
.
target
).
parent
().
parent
().
find
(
'
form.sendXMPPMessage
'
).
toggle
();
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment