1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-05-15 10:07:07 +01:00

Support NEW command.

This commit is contained in:
devlinjd
2015-12-02 14:56:36 -05:00
parent 2431ae4d89
commit 5b3a25c461
8 changed files with 227 additions and 20 deletions

View File

@ -50,7 +50,7 @@ Definition of the JRSResume class.
*/
JRSResume.prototype.stringify = function() {
function replacer( key,value ) { // Exclude these keys from stringification
return _.some(['meta', 'warnings', 'computed', 'filt', 'ctrl', 'index',
return _.some(['imp', 'warnings', 'computed', 'filt', 'ctrl', 'index',
'safeStartDate', 'safeEndDate', 'safeDate', 'safeReleaseDate', 'result',
'isModified', 'htmlPreview', 'display_progress_bar'],
function( val ) { return key.trim() === val; }
@ -126,7 +126,7 @@ Definition of the JRSResume class.
Get the default (empty) sheet.
*/
JRSResume.default = function() {
return new JRSResume().open( PATH.join( __dirname, 'empty.json'), 'Empty' );
return new JRSResume().open( PATH.join( __dirname, 'empty-jrs.json'), 'Empty' );
}
/**