mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-30 19:52:17 +01:00
Forgot to fix one file...
This commit is contained in:
parent
afffd44ef5
commit
7127bb1840
10
js/loader.js
10
js/loader.js
@ -26,8 +26,8 @@ Contacts_Import={
|
|||||||
$('#startimport').click(function(){
|
$('#startimport').click(function(){
|
||||||
var filename = $('#filename').val();
|
var filename = $('#filename').val();
|
||||||
var path = $('#path').val();
|
var path = $('#path').val();
|
||||||
var addressbookid = $('#contacts option:selected').val();
|
var addressbookid = $('#leftcontent option:selected').val();
|
||||||
if($('#contacts option:selected').val() == 'newaddressbook'){
|
if($('#leftcontent option:selected').val() == 'newaddressbook'){
|
||||||
var method = 'new';
|
var method = 'new';
|
||||||
var addressbookname = $('#newaddressbook').val();
|
var addressbookname = $('#newaddressbook').val();
|
||||||
var addressbookname = $.trim(addressbookname);
|
var addressbookname = $.trim(addressbookname);
|
||||||
@ -42,7 +42,7 @@ Contacts_Import={
|
|||||||
var method = 'old';
|
var method = 'old';
|
||||||
}
|
}
|
||||||
$('#newaddressbook').attr('readonly', 'readonly');
|
$('#newaddressbook').attr('readonly', 'readonly');
|
||||||
$('#contacts').attr('disabled', 'disabled');
|
$('#leftcontent').attr('disabled', 'disabled');
|
||||||
var progressfile = $('#progressfile').val();
|
var progressfile = $('#progressfile').val();
|
||||||
$.post(OC.filePath('contacts', '', 'import.php'), {method: String (method), addressbookname: String (addressbookname), path: String (path), file: String (filename), id: String (addressbookid)}, function(data){
|
$.post(OC.filePath('contacts', '', 'import.php'), {method: String (method), addressbookname: String (addressbookname), path: String (path), file: String (filename), id: String (addressbookid)}, function(data){
|
||||||
if(data.status == 'success'){
|
if(data.status == 'success'){
|
||||||
@ -54,8 +54,8 @@ Contacts_Import={
|
|||||||
$('#progressbar_container').css('display', 'block');
|
$('#progressbar_container').css('display', 'block');
|
||||||
window.setTimeout('Contacts_Import.getimportstatus(\'' + progressfile + '\')', 500);
|
window.setTimeout('Contacts_Import.getimportstatus(\'' + progressfile + '\')', 500);
|
||||||
});
|
});
|
||||||
$('#contacts').change(function(){
|
$('#leftcontent').change(function(){
|
||||||
if($('#contacts option:selected').val() == 'newaddressbook'){
|
if($('#leftcontent option:selected').val() == 'newaddressbook'){
|
||||||
$('#newaddressbookform').slideDown('slow');
|
$('#newaddressbookform').slideDown('slow');
|
||||||
}else{
|
}else{
|
||||||
$('#newaddressbookform').slideUp('slow');
|
$('#newaddressbookform').slideUp('slow');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user