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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$.post(OC.Router.generate('office_session_start'),
|
$.post(
|
||||||
|
OC.Router.generate('office_session_start'),
|
||||||
{'path': filepath},
|
{'path': filepath},
|
||||||
officeMain.initSession
|
officeMain.initSession
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
joinSession: function(esId) {
|
joinSession: function(esId) {
|
||||||
$.post(OC.Router.generate('office_session_join') + '/' + esId,
|
$.post(
|
||||||
|
OC.Router.generate('office_session_join') + '/' + esId,
|
||||||
{},
|
{},
|
||||||
officeMain.initSession
|
officeMain.initSession
|
||||||
);
|
);
|
||||||
@ -183,14 +185,17 @@ $(document).ready(function() {
|
|||||||
$('#inivite-input').autocomplete({
|
$('#inivite-input').autocomplete({
|
||||||
minLength: 1,
|
minLength: 1,
|
||||||
source: function(search, response) {
|
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) {
|
function(result) {
|
||||||
if (result.status == 'success' && result.data.length > 0) {
|
if (result.status === 'success' && result.data.length > 0) {
|
||||||
response(result.data);
|
response(result.data);
|
||||||
} else {
|
} else {
|
||||||
response([t('core', 'No people found')]);
|
response([t('core', 'No people found')]);
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
);
|
||||||
},
|
},
|
||||||
select: function(event, el) {
|
select: function(event, el) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user