whitespace and indenting
This commit is contained in:
parent
74011e3fc6
commit
d8aa4db390
15
js/office.js
15
js/office.js
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user