/// <reference path="../../typings/jquery/jquery.d.ts" />
import * as $ from 'jquery';
import {restoreToolboxSettings} from './toolbox';

import {ReaderToolsModel} from './decodablereader/readerToolsModel'

export function canUndo() :boolean {
    return ReaderToolsModel.model !== null && ReaderToolsModel.model.shouldHandleUndo() && ReaderToolsModel.model.canUndo();
}

export function undo() {
    ReaderToolsModel.model.undo();
}

//this is currently inserted by c#. TODO: get settings via ajax
declare function GetToolboxSettings():any;

$(document).ready(function() { 
    restoreToolboxSettings(GetToolboxSettings()); 
});
/// <reference path="../../typings/jquery/jquery.d.ts" />
import * as $ from 'jquery';
import {restoreToolboxSettings} from './toolbox';

import {ReaderToolsModel} from './decodablereader/readertoolsmodel'

export function canUndo() :boolean {
    return ReaderToolsModel.model !== null && ReaderToolsModel.model.shouldHandleUndo() && ReaderToolsModel.model.canUndo();
}

export function undo() {
    ReaderToolsModel.model.undo();
}

//this is currently inserted by c#. TODO: get settings via ajax
declare function GetToolboxSettings():any;

$(document).ready(function() { 
    restoreToolboxSettings(GetToolboxSettings()); 
});
--- 
+++ 
@@ -2,7 +2,7 @@
 import * as $ from 'jquery';
 import {restoreToolboxSettings} from './toolbox';
 
-import {ReaderToolsModel} from './decodablereader/readertoolsmodel'
+import {ReaderToolsModel} from './decodablereader/readerToolsModel'
 
 export function canUndo() :boolean {
     return ReaderToolsModel.model !== null && ReaderToolsModel.model.shouldHandleUndo() && ReaderToolsModel.model.canUndo();
Fix case problem on import
