ajax work

This commit is contained in:
friendica
2014-09-06 00:37:15 -07:00
parent 7a9b1c4a77
commit 28b75b028d
8 changed files with 113 additions and 16 deletions

View File

@@ -689,7 +689,7 @@ function updateConvItems(mode,data) {
bParam_page = 1;
}
update_url = baseurl + '/directory/?f=&aj=1&page=' + bParam_page;
update_url = baseurl + '/' + page_query + '/?f=&aj=1&page=' + bParam_page + extra_args ;
$("#page-spinner").spin('small');
update_mode = 'append';

37
view/js/mod_events.js Normal file
View File

@@ -0,0 +1,37 @@
$(document).ready( function() { showHideFinishDate(); });
function showHideFinishDate() {
if( $('#event-nofinish-checkbox').is(':checked'))
$('#event-finish-wrapper').hide();
else
$('#event-finish-wrapper').show();
}
function eventGetStart() {
//reply = prompt("{{$expirewhen}}", $('#jot-expire').val());
$('#startModal').modal();
$('#start-modal-OKButton').on('click', function() {
reply=$('#start-date').val();
if(reply && reply.length) {
$('#start-text').val(reply);
$('#startModal').modal('hide');
}
})
}
function eventGetFinish() {
//reply = prompt("{{$expirewhen}}", $('#jot-expire').val());
$('#finishModal').modal();
$('#finish-modal-OKButton').on('click', function() {
reply=$('#finish-date').val();
if(reply && reply.length) {
$('#finish-text').val(reply);
$('#finishModal').modal('hide');
}
})
}