~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 11:25:11 UTC
  • Revision ID: grantw@unimelb.edu.au-20090325112511-vmrk9h2kmy9dupqo
Replace all uses of .textContent with .nodeValue.

.nodeValue is more correct (we don't actually want to accidentally be
silently clobbering all children), and .textContent is DOM Level 3,
which is like so only 5 years ago, which means IE8 doesn't support it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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);