some tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2014-02-07 08:13:52 +04:00
parent 60f61fa77f
commit 48b30ccb5a
2 changed files with 16 additions and 8 deletions

View File

@ -34,8 +34,8 @@ var KEYBOARD_CONFIG = {
}), }),
}, },
'.overlay': { 'Overlay mode.': {
title: 'Overlay mode.', pattern: '.overlay',
doc: '', doc: '',
ignore: '*', ignore: '*',
@ -46,8 +46,8 @@ var KEYBOARD_CONFIG = {
}, },
}, },
'.editor:not(.inline-editor-mode)': { 'Editor mode.': {
title: 'Editor mode.', pattern: '.editor:not(.inline-editor-mode)',
doc: '', doc: '',
'0': function(){ '0': function(){
@ -115,8 +115,8 @@ var KEYBOARD_CONFIG = {
}, },
// ignore all keys except Esc here... // ignore all keys except Esc here...
'.inline-editor-mode': { 'Inline editor mode.': {
title: 'Inline editor mode.', pattern: '.inline-editor-mode',
doc: '', doc: '',
//ignore: '*' //ignore: '*'
@ -126,8 +126,8 @@ var KEYBOARD_CONFIG = {
}, },
}, },
'.chrome:not(.inline-editor-mode)': { 'Global bindings.': {
title: 'Global bindings.', pattern: '.chrome:not(.inline-editor-mode)',
doc: '', doc: '',
Esc: function(){ Esc: function(){

View File

@ -1346,6 +1346,10 @@ function buildJSON(export_bookmarks, export_position){
// will not get loaded correctly. // will not get loaded correctly.
// one example is "background: none", use "background: transparent" // one example is "background: none", use "background: transparent"
// instead. // instead.
// XXX this breaks:
// - captions (???)
// - editor (needs reset)
// - navigator (???)
function loadJSON(data, load_user_data){ function loadJSON(data, load_user_data){
function _build(parent, data){ function _build(parent, data){
// page... // page...
@ -1419,6 +1423,10 @@ function loadJSON(data, load_user_data){
if(load_user_data){ if(load_user_data){
loadMagazineUserData(data.position, data.bookmarks) loadMagazineUserData(data.position, data.bookmarks)
} }
// XXX do this ONLY in editor mode...
setupEditor()
resetNavigator()
} }