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

« back to all changes in this revision

Viewing changes to www/media/browser/browser.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:
658
658
 
659
659
    /* Paste, new file, new directory, upload */
660
660
    /* Disable if the current file is not a directory */
661
 
    if (!current_file.is_dir)
 
661
    if (!current_file.isdir)
662
662
    {
663
663
        var paste = document.getElementById("act_paste");
664
664
        var newfile = document.getElementById("act_newfile");
701
701
        svncheckout.setAttribute("disabled", "disabled");
702
702
    }
703
703
 
 
704
    /* There is currently nothing on the More Actions menu of use
 
705
     * when the current file is not a directory. Hence, just remove
 
706
     * it entirely.
 
707
     * (This makes some of the above decisions somewhat redundant).
 
708
     */
 
709
    if (!(current_file.isdir))
 
710
    {
 
711
        var moreactions = document.getElementById("moreactions_area");
 
712
        moreactions.setAttribute("style", "display: none;");
 
713
    }
 
714
 
704
715
    return;
705
716
}
706
717