mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-19 08:52:22 +01:00
fix route url bug
This commit is contained in:
parent
919f540d01
commit
56e33427fa
@ -285,8 +285,12 @@ OC.Contacts = OC.Contacts || {};
|
|||||||
self.$importFileInput.prop('disabled', value === '-1' );
|
self.$importFileInput.prop('disabled', value === '-1' );
|
||||||
if(value !== '-1') {
|
if(value !== '-1') {
|
||||||
var url = OC.generateUrl(
|
var url = OC.generateUrl(
|
||||||
'addressbook/{backend}/{addressBookId}/{importType}/import/upload',
|
'apps/contacts/addressbook/{backend}/{addressBookId}/{importType}/import/upload',
|
||||||
{addressBookId:value, importType:self.$importFormatSelect.find('option:selected').val(), backend: $(this).find('option:selected').data('backend')}
|
{
|
||||||
|
addressBookId:value,
|
||||||
|
importType:self.$importFormatSelect.find('option:selected').val(),
|
||||||
|
backend: $(this).find('option:selected').data('backend')
|
||||||
|
}
|
||||||
);
|
);
|
||||||
self.$importFileInput.fileupload('option', 'url', url);
|
self.$importFileInput.fileupload('option', 'url', url);
|
||||||
//self.$importFileInput.attr('data-url', url);
|
//self.$importFileInput.attr('data-url', url);
|
||||||
@ -294,7 +298,7 @@ OC.Contacts = OC.Contacts || {};
|
|||||||
});
|
});
|
||||||
this.$importFileInput.fileupload({
|
this.$importFileInput.fileupload({
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
start: function(/*e, data*/) {
|
start: function(e, data) {
|
||||||
self.$importProgress.progressbar({value:false});
|
self.$importProgress.progressbar({value:false});
|
||||||
$('.tipsy').remove();
|
$('.tipsy').remove();
|
||||||
$('.import-upload').hide();
|
$('.import-upload').hide();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user