Merge branch 'master' into roster_refactor

This commit is contained in:
JC Brand 2015-04-15 21:52:14 +02:00
commit 34e2cfc191
3 changed files with 3 additions and 2 deletions

View File

@ -122,7 +122,7 @@ module.exports = function(grunt) {
done();
};
var rjsext = (process.platform === 'win32') ? '.cmd' : '';
var rjs = path.resolve('./node_modules/.bin/r.js' + rjsext);
var rjs = '"' + path.resolve('./node_modules/.bin/r.js' + rjsext) + '"';
exec(rjs + ' -o src/build.js && ' +
rjs + ' -o src/build.js optimize=none out=builds/converse.js && ' +
rjs + ' -o src/build-no-jquery.js &&' +

View File

@ -1501,6 +1501,7 @@
},
updateVCard: function () {
if (!this.use_vcards) { return; }
var jid = this.model.get('jid'),
contact = converse.roster.get(jid);
if ((contact) && (!contact.get('vcard_updated'))) {

View File

@ -31,7 +31,7 @@
<!-- until here -->
<script type="text/javascript" src="components/otr/build/dep/eventemitter.js"></script>
<script type="text/javascript" src="src/otr.js"></script>
<script type="text/javascript" src="components/strophe/strophe.min.js"></script>
<script type="text/javascript" src="components/strophejs/strophe.js"></script>
<script type="text/javascript" src="src/strophe.roster.js"></script>
<script type="text/javascript" src="components/strophejs-plugins/vcard/strophe.vcard.js"></script>
<script type="text/javascript" src="components/strophejs-plugins/disco/strophe.disco.js"></script>