You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
632 B
JavaScript
22 lines
632 B
JavaScript
$(document).ready(function(){
|
|
var documentsSettings = {
|
|
save : function() {
|
|
var data = {
|
|
savePath : $('#documents-default-path').val()
|
|
};
|
|
OC.msg.startSaving('#documents-personal .msg');
|
|
$.post(OC.filePath('documents', 'ajax', 'personal.php'), data, documentsSettings.afterSave);
|
|
},
|
|
afterSave : function(data){
|
|
OC.msg.finishedSaving('#documents-personal .msg', data);
|
|
}
|
|
};
|
|
$('#documents-default-path').blur(documentsSettings.save);
|
|
$('#documents-default-path').keypress(function( event ) {
|
|
if (event.which == 13) {
|
|
event.preventDefault();
|
|
documentsSettings.save();
|
|
}
|
|
});
|
|
});
|