Changes

Jump to navigation Jump to search
m
no edit summary
Line 110: Line 110:  
function notify_porting() {
 
function notify_porting() {
 
 
var button_import = new OO.ui.ButtonWidget( { label: "Import Personal Data", classes: [ 'pduimark' ] } ),  
+
var button_import = new OO.ui.SelectFileInputWidget ( {  
 +
label: "Import Personal Data",  
 +
useInputTag: true,
 +
classes: [ 'pduimark' ]  
 +
}),  
 +
 
 
button_export = new OO.ui.ButtonWidget( { label: "Export Personal Data", classes: [ 'pduimark' ] } );
 
button_export = new OO.ui.ButtonWidget( { label: "Export Personal Data", classes: [ 'pduimark' ] } );
    
button_import.on( 'click', function () {
 
button_import.on( 'click', function () {
 +
 +
 +
 +
if (window.webkitURL != null) {
 +
 +
} else {
 +
 +
}
 +
 +
    
});
 
});
Line 124: Line 139:  
if ( result === undefined ) { alert("No data to export") };
 
if ( result === undefined ) { alert("No data to export") };
   −
var filename_tosaveas = "pdiolocalexport_" + result.name.user + "_" + Date.now();
+
var filename_tosaveas = "pdiolocalexport_" + result.name.user + "_" + Date.now() + '.json';
 
 
 
result.id = '';
 
result.id = '';
530

edits

Navigation menu