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

« back to all changes in this revision

Viewing changes to ivle/webapp/filesystem/browser/media/browser.js

  • Committer: William Grant
  • Date: 2009-03-25 22:13:16 UTC
  • mfrom: (1171 trunk)
  • mto: (1165.3.1 submissions)
  • mto: This revision was merged to the branch mainline in revision 1174.
  • Revision ID: grantw@unimelb.edu.au-20090325221316-wj6td6w4hbwv96od
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
            /* Check for action errors reported by the server, and report them
145
145
             * to the user */
146
146
            var error = response.getResponseHeader("X-IVLE-Action-Error");
147
 
            if (error != null)
 
147
            if (error != null && error != "")
148
148
                /* Note: This header (in particular) comes URI-encoded, to
149
149
                 * allow multi-line error messages. Decode */
150
150
                alert("Error: " + decodeURIComponent(error.toString()) + ".");
728
728
            publish.setAttribute("value", "unpublish");
729
729
            publish.setAttribute("title" ,"Make it so this directory "
730
730
                + "can not be seen by anyone on the web");
731
 
            publish.textContent = "Unpublish";
 
731
            publish.firstChild.nodeValue = "Unpublish";
732
732
        } else {
733
733
            publish.setAttribute("value", "publish");
734
734
            publish.setAttribute("title","Make it so this directory "
735
735
                + "can be seen by anyone on the web");
736
 
            publish.textContent = "Publish";
 
736
            publish.firstChild.nodeValue = "Publish";
737
737
        }
738
738
    }
739
739
    set_action_state(["publish", "submit"], pubcond);
760
760
    /* Subversion actions */
761
761
    /* These are only useful if we are in a versioned directory and have some
762
762
     * files selected. */
763
 
    set_action_state(["svnadd",], numsel >= 1 && current_file.svnstatus);
 
763
    set_action_state(["svnadd"], numsel >= 1 && current_file.svnstatus);
764
764
    /* And these are only usefull is ALL the selected files are versioned */
765
765
    set_action_state(["svnremove", "svnrevert", "svncommit", "svncopy", 
766
766
            "svncut"], numsel >= 1 && current_file.svnstatus && svn_selection);