View Single Post
Old 04-06-2012, 12:54 PM   #3612
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
A,

Core.settings.saveOptions(yourNameHere);

simply saves all option-values not equal to default.

Code in spoiler taken from BookManagement.js
Spoiler:
Code:
optionDefs: [
			{
				name: 'subCollections',
				title: L('SUB_COLLECTIONS'),
				icon: 'BOOKS',
				defaultValue: 'false',
				values: ['true','false'],
				valueTitles: {
					'true': L('VALUE_TRUE'),
					'false': L('VALUE_FALSE')
				}
			},
			{
				name: 'subCollSeparator',
				title: L('SUB_COLLECTIONS_SEPARATOR'),
				icon: 'BOOKS',
				defaultValue: '|',
				values: ['|', '.', ',', ':', ';', '/', '~'],
			},
			{
				name: 'clearHistsOnShutdown',
				title: L('CLEAR_PAGE_HISTORY_ON_SHUTDOWN'),
				icon: 'CLOCK',
				helpText: L('CLEAR_PAGE_HIST_HELPTEXT'),
				defaultValue: 'false',
				values: ['true', 'false'],
				valueTitles: {
					'true': L('VALUE_TRUE'),
					'false': L('VALUE_FALSE')
				}	
			}
		],

Again, without knowing your code it is hard to be more specific.
Mark Nord is offline   Reply With Quote