~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/media/browser/editor.js

  • Committer: mattgiuca
  • Date: 2008-06-16 08:28:58 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:777
browser: Now hides the "More actions" box altogether if the current file is
    not a directory. (There is nothing useful there, though this may change).
    Fixed disabling directory actions all the time.
Editor: Rather than having an empty "actions2" bar and a special "editor
    bar", the contents of the previous editor bar are now placed in the
    "actions2" bar. (Basically removed that blank toolbar line in the editor).

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 */
21
21
function present_editorhead(elem, path, handler_type)
22
22
{
23
 
    var div = document.createElement("div");
24
 
    /* Insert as the head element */
25
 
    elem.insertBefore(div, elem.firstChild)
26
 
    div.setAttribute("id", "editorhead");
 
23
    var div = document.getElementById("actions2");
27
24
 
28
25
    /* Set up minimal interface */
29
26
    var p = dom_make_text_elem("p", "Path: ");