diff --git a/src/www/js/support.js b/src/www/js/support.js index 9687ea8a1..41b736855 100644 --- a/src/www/js/support.js +++ b/src/www/js/support.js @@ -20,6 +20,15 @@ if(!Array.isArray) { }; } +// Create a clone of an array +// http://davidwalsh.name/javascript-clone-array +// Note that iterating over an array with for...in will include "clone" as a key! +// if(!Array.clone) { +// Array.prototype.clone = function() { +// return this.slice(0); +// }; +// } + /* --- JSONP ---------------------------------------------------------------- */ // Inspired by the function jsonp from diff --git a/src/www/syntax-editor/editor.css b/src/www/syntax-editor/editor.css index 29f45a7e7..2b5d5a6d1 100644 --- a/src/www/syntax-editor/editor.css +++ b/src/www/syntax-editor/editor.css @@ -7,7 +7,7 @@ body.syntax_editor { display:none; } -#editor select#to_menu +.editor select#to_menu { height: 10em; position: absolute; diff --git a/src/www/syntax-editor/editor.html b/src/www/syntax-editor/editor.html index 36045957c..1d4cc401c 100644 --- a/src/www/syntax-editor/editor.html +++ b/src/www/syntax-editor/editor.html @@ -9,7 +9,7 @@