Add typeahead.js as dependency and integrate. updates #215.

This commit is contained in:
JC Brand 2014-08-26 19:59:11 +02:00
parent 28827428e7
commit f1555774f0
10 changed files with 16 additions and 11 deletions

View File

@ -29,7 +29,8 @@
"jquery.browser": "~0.0.6",
"jquery-easing-original": "~1.3.1",
"bootstrap": "~3.2.0",
"fontawesome": "~4.1.0"
"fontawesome": "~4.1.0",
"typeahead.js": "~0.10.5"
},
"exportsOverride": {}
}

View File

@ -581,7 +581,7 @@ span.spinner.hor_centered {
#conversejs .chatroom #invited-contact {
margin: 1px;
margin-top: 2px;
width: 92px;
width: 96px;
}
#conversejs .participants ul.participant-list li {
overflow: hidden;

View File

@ -11,14 +11,8 @@
<link type="text/css" rel="stylesheet" media="screen" href="components/bootstrap/dist/css/bootstrap.min.css" />
<link type="text/css" rel="stylesheet" media="screen" href="components/fontawesome/css/font-awesome.min.css" />
<link type="text/css" rel="stylesheet" media="screen" href="css/theme.css" />
<link type="text/css" rel="stylesheet" media="screen" href="css/converse.min.css" />
<!-- Only for development: <script data-main="main" src="components/requirejs/require.js"></script> -->
<![if gte IE 9]>
<script src="builds/converse.website.min.js"></script>
<![endif]>
<!--[if lt IE 9]>
<script src="builds/converse.website-no-otr.min.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" media="screen" href="css/converse.css" />
<script data-main="main" src="components/requirejs/require.js"></script>
</head>
<body id="page-top" data-spy="scroll" data-target=".navbar-custom">
@ -241,6 +235,7 @@
play_sounds: true,
prebind: false,
show_controlbox_by_default: true,
debug: true,
roster_groups: true
});
});

View File

@ -626,7 +626,7 @@ span.spinner.hor_centered {
#conversejs .chatroom #invited-contact {
margin: 1px;
margin-top: 2px;
width: 92px;
width: 96px;
}
#conversejs .participants ul.participant-list li {

View File

@ -11,6 +11,7 @@ config = {
"backbone": "components/backbone/backbone",
"backbone.browserStorage": "components/backbone.browserStorage/backbone.browserStorage",
"backbone.overview": "components/backbone.overview/backbone.overview",
"typeahead": 'components/typeahead.js/dist/typeahead.jquery',
"text": 'components/requirejs-text/text',
"tpl": 'components/requirejs-tpl-jcbrand/tpl',
"converse-templates": "src/templates",
@ -73,6 +74,7 @@ config = {
'crypto.sha1': { deps: ['crypto.core'] },
'crypto.sha256': { deps: ['crypto.core'] },
'bigint': { deps: ['crypto'] },
'typeahead': { deps: ['jquery'] },
'jquery.browser': { deps: ['jquery'] },
'jquery.easing': { deps: ['jquery'] },
'utils': { deps: ['jquery'] },

View File

@ -5,6 +5,7 @@ define("converse-dependencies", [
"backbone.browserStorage",
"backbone.overview",
"jquery.browser",
"typeahead",
"utils",
"strophe",
"strophe.muc",

View File

@ -4,6 +4,7 @@ define("converse-dependencies", [
"backbone.browserStorage",
"backbone.overview",
"jquery.browser",
"typeahead",
"utils",
"strophe",
"strophe.muc",

View File

@ -6,6 +6,7 @@ define("converse-dependencies", [
"backbone.overview",
"jquery.browser",
"jquery.easing", // XXX: Can be removed, only for https://conversejs.org
"typeahead",
"utils",
"strophe",
"strophe.muc",

View File

@ -7,6 +7,7 @@ define("converse-dependencies", [
"backbone.overview",
"jquery.browser",
"jquery.easing", // XXX: Only for https://conversejs.org
"typeahead",
"utils",
"strophe",
"strophe.muc",

View File

@ -9,5 +9,8 @@
</form>
</div>
<div class="participants">
<form class="room-invite">
<input id="invited-contact" placeholder="Invite someone" type="text"/>
</form>
<ul class="participant-list"></ul>
</div>