728
728
var svndiff = document.getElementById("act_svndiff");
729
729
var svnrevert = document.getElementById("act_svnrevert");
730
730
var svncommit = document.getElementById("act_svncommit");
731
var svnlog = document.getElementById("act_svnlog");
731
732
/* These are only useful if we are in a versioned directory and have some
732
733
* files selected. */
733
734
if (numsel >= 1 && current_file.svnstatus)
749
750
svncommit.setAttribute("disabled", "disabled");
752
/* Diff only supports one path at the moment. */
753
/* Diff and log only support one path at the moment. */
755
756
svnst = file_listing[selected_files[0]].svnstatus;
757
/* Diff also doesn't like unversioned paths, and diffs on unchanged
758
/* Diff and log also don't like unversioned paths, and diffs on unchanged
758
759
* files are pointless. */
759
if (svnst && svnst != "unversioned" && svnst != "normal")
760
if (svnst && svnst != "unversioned")
761
svndiff.setAttribute("class", "choice");
762
svndiff.removeAttribute("disabled");
762
if (svnst != "normal")
764
svndiff.setAttribute("class", "choice");
765
svndiff.removeAttribute("disabled");
769
svndiff.setAttribute("class", "disabled");
770
svndiff.setAttribute("disabled", "disabled");
773
svnlog.setAttribute("class", "choice");
774
svnlog.removeAttribute("disabled");
767
779
svndiff.setAttribute("class", "disabled");
768
780
svndiff.setAttribute("disabled", "disabled");
781
svnlog.setAttribute("class", "disabled");
782
svnlog.setAttribute("disabled", "disabled");
771
785
var svncheckout = document.getElementById("act_svncheckout");