Diff
Not logged in

Differences From Artifact [b1e1577b3e]:

To Artifact [6f428c5eae]:


52
53
54
55
56
57
58
59


60
61
62
63
64
65
66
52
53
54
55
56
57
58

59
60
61
62
63
64
65
66
67







-
+
+







      ),"Loading leaves...");
      D.disable(this.e.btnLoadFile, this.e.selectFiles, this.e.selectCi); 
      const self = this;
      F.fetch('fileedit',{
        urlParams:'ajax=filelist&leaves',
        responseType: 'json',
        onload: function(list){
          D.append(D.clearElement(self.e.ciListLabel),"Open leaves:");
          D.append(D.clearElement(self.e.ciListLabel),
                   "Open leaves (newest first):");
          self.cache.checkins = list;
          D.clearElement(D.enable(self.e.selectCi));
          let loadThisOne;
          list.forEach(function(o,n){
            if(!n) loadThisOne = o;
            D.option(self.e.selectCi, o.checkin,
                     o.timestamp+' ['+o.branch+']: '
85
86
87
88
89
90
91


92
93
94





95
96
97
98
99
100
101
86
87
88
89
90
91
92
93
94



95
96
97
98
99
100
101
102
103
104
105
106







+
+
-
-
-
+
+
+
+
+







        return this;
      }
      const onload = (response)=>{
        D.clearElement(selFiles, this.e.btnLoadFile);
        D.append(
          D.clearElement(this.e.fileListLabel),
          "Editable files for ",
          D.append(
            D.code(),
          D.a(F.repoUrl('timeline',{
            c: ciUuid
          }), F.hashDigits(ciUuid))
            D.a(F.repoUrl('timeline',{
              c: ciUuid
            }), F.hashDigits(ciUuid)),
          ),
          ":"
        );
        this.cache.files[response.checkin] = response;
        response.editableFiles.forEach(function(fn,n){
          D.option(selFiles, fn);
        });
        if(selFiles.options.length){
          D.enable(selFiles, this.e.btnLoadFile);
472
473
474
475
476
477
478
479
480

481
482
483
484
485
486
487
488
477
478
479
480
481
482
483


484

485
486
487
488
489
490
491







-
-
+
-







    );
    const purlArgs = F.encodeUrlArgs({
      filename: this.finfo.filename,
      checkin: rUrl
    },false,true);
    const purl = F.repoUrl('fileedit',purlArgs);
    D.append(
      eTgt,
      "Permalink: ",
      eTgt,"[",D.a(purl,"Editor permalink"),"]"
      D.append(D.code(),D.a(purl,true))
    );
    return this;
  };

  /**
     loadFile() loads (file,checkinVersion) and updates the relevant
     UI elements to reflect the loaded state. If passed no arguments