mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-20 21:34:20 -07:00
Update source
This commit is contained in:
parent
b08c6eb4fd
commit
4809354784
2 changed files with 3 additions and 2 deletions
|
@ -237,6 +237,8 @@ haste.prototype.removeLineNumbers = function() {
|
|||
|
||||
// Load a document and show it
|
||||
haste.prototype.loadDocument = function(key) {
|
||||
// remove all code elements from the page
|
||||
removeElementsByClass('code');
|
||||
// Split the key up
|
||||
var parts = key.split('.', 2);
|
||||
// Ask for what we want
|
||||
|
@ -244,7 +246,6 @@ haste.prototype.loadDocument = function(key) {
|
|||
_this.doc = new haste_document();
|
||||
_this.doc.load(parts[0], function(ret) {
|
||||
if (ret) {
|
||||
console.log("loading doc huh")
|
||||
var lines = ret.value.split(/\r\n|\r|\n/);
|
||||
for (var i = 0; i < lines.length; i++) {
|
||||
let code = document.createElement('code');
|
||||
|
|
2
static/application.min.js
vendored
2
static/application.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue