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

« back to all changes in this revision

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

  • Committer: dcoles
  • Date: 2008-04-07 04:35:27 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:727
Browser: Added UI code to let you publish and unpublish folders
    browser.js: Set the UI to the correct values depending on the published 
    state.
    listing.js: Use unpublish rather than svn_unpublish

Show diffs side-by-side

added added

removed removed

Lines of Context:
564
564
    if (numsel <= 1 && file.isdir)
565
565
    {
566
566
        /* TODO: Work out of file is svn'd */
567
 
        /* TODO: If this dir is already published, call it "Unpublish" */
568
567
        publish.setAttribute("class", "choice");
569
568
        publish.removeAttribute("disabled");
 
569
        /* If this dir is already published, call it "Unpublish" */
 
570
        if (file.published)
 
571
        {
 
572
            publish.setAttribute("value", "unpublish");
 
573
            publish.setAttribute("title" ,"Make it so this directory "
 
574
                + "can not be seen by anyone on the web");
 
575
            publish.textContent = "Unpublish";
 
576
        } else {
 
577
            publish.setAttribute("value", "publish");
 
578
            publish.setAttribute("title","Make it so this directory "
 
579
                + "can be seen by anyone on the web");
 
580
            publish.textContent = "Publish";
 
581
        }
570
582
        submit.setAttribute("class", "choice");
571
583
        submit.removeAttribute("disabled");
572
584
    }