Fix history deletion

This commit is contained in:
Yukai Huang 2016-10-13 16:25:38 +08:00
parent 229b947b09
commit d600364933
3 changed files with 7 additions and 3 deletions

View file

@ -17,6 +17,7 @@ var postHistoryToServer = historyModule.postHistoryToServer;
var deleteServerHistory = historyModule.deleteServerHistory; var deleteServerHistory = historyModule.deleteServerHistory;
var parseServerToHistory = historyModule.parseServerToHistory; var parseServerToHistory = historyModule.parseServerToHistory;
var saveStorageHistoryToServer = historyModule.saveStorageHistoryToServer; var saveStorageHistoryToServer = historyModule.saveStorageHistoryToServer;
var clearDuplicatedHistory = historyModule.clearDuplicatedHistory;
var saveAs = require('file-saver').saveAs; var saveAs = require('file-saver').saveAs;
var List = require('list.js'); var List = require('list.js');

View file

@ -10,7 +10,7 @@ var extra = require('./extra');
var renderFilename = extra.renderFilename; var renderFilename = extra.renderFilename;
var md = extra.md; var md = extra.md;
var migrateHistoryFromTempCallback = null; window.migrateHistoryFromTempCallback = null;
migrateHistoryFromTemp(); migrateHistoryFromTemp();
@ -417,5 +417,6 @@ module.exports = {
postHistoryToServer: postHistoryToServer, postHistoryToServer: postHistoryToServer,
deleteServerHistory: deleteServerHistory, deleteServerHistory: deleteServerHistory,
parseServerToHistory: parseServerToHistory, parseServerToHistory: parseServerToHistory,
saveStorageHistoryToServer: saveStorageHistoryToServer saveStorageHistoryToServer: saveStorageHistoryToServer,
clearDuplicatedHistory: clearDuplicatedHistory
} }

View file

@ -204,7 +204,9 @@
<script src="<%- url %>/vendor/velocity/velocity.min.js" defer></script> <script src="<%- url %>/vendor/velocity/velocity.min.js" defer></script>
<script src="<%- url %>/vendor/moment/min/moment-with-locales.min.js" defer></script> <script src="<%- url %>/vendor/moment/min/moment-with-locales.min.js" defer></script>
<% } %> <% } %>
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js" defer></script> <script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" defer></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/4.16.4/lodash.min.js" defer></script> <script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/4.16.4/lodash.min.js" defer></script>
<%- include build/cover-scripts %> <%- include build/cover-scripts %>
</body> </body>