whitespace and indenting

This commit is contained in:
Jörn Friedrich Dreyer 2013-08-22 16:43:14 +02:00 committed by Tobias Hintze
parent 74011e3fc6
commit d8aa4db390

View File

@ -97,14 +97,16 @@ var officeMain = {
return;
}
$.post(OC.Router.generate('office_session_start'),
$.post(
OC.Router.generate('office_session_start'),
{'path': filepath},
officeMain.initSession
);
},
joinSession: function(esId) {
$.post(OC.Router.generate('office_session_join') + '/' + esId,
$.post(
OC.Router.generate('office_session_join') + '/' + esId,
{},
officeMain.initSession
);
@ -183,14 +185,17 @@ $(document).ready(function() {
$('#inivite-input').autocomplete({
minLength: 1,
source: function(search, response) {
$.get(OC.Router.generate('office_user_search'), {search: $('#inivite-input').val()},
$.get(
OC.Router.generate('office_user_search'),
{search: $('#inivite-input').val()},
function(result) {
if (result.status == 'success' && result.data.length > 0) {
if (result.status === 'success' && result.data.length > 0) {
response(result.data);
} else {
response([t('core', 'No people found')]);
}
});
}
);
},
select: function(event, el) {
event.preventDefault();