Fossil

Check-in [f315268e2c]
Login

Check-in [f315268e2c]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Removed some debug output.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: f315268e2c7036da91decb4395fcf2390e58bb4931a87624b123237c27c7edc8
User & Date: stephan 2020-12-24 06:18:54.625
Context
2020-12-24
07:19
chat: ported in the hyperlink and @username parser from the older chat.tcl script. This is an intermediary workaround until we decide how/whether to do server-side markup handling. ... (check-in: c5095283fb user: stephan tags: trunk)
06:18
Removed some debug output. ... (check-in: f315268e2c user: stephan tags: trunk)
05:58
Added UI to delete chat posts (tap on the message header). Made a change to the semantics of when fossil.PopupWidget's refresh() callback is triggered to account for the common case of having to show() the popup twice in a row without a hide() in between. ... (check-in: b7f106da8a user: stephan tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/chat.js.
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
      var e;
      if(id instanceof HTMLElement){
        e = id;
        id = e.dataset.msgid;
      }else{
        e = this.getMessageElemById(id);
      }
      console.debug("e && id ===",e&&id, e, id);
      if(e && id){
        D.remove(e);
        F.toast.message("Deleted message "+id+".");
      }
      return !!e;
    };








<







37
38
39
40
41
42
43

44
45
46
47
48
49
50
      var e;
      if(id instanceof HTMLElement){
        e = id;
        id = e.dataset.msgid;
      }else{
        e = this.getMessageElemById(id);
      }

      if(e && id){
        D.remove(e);
        F.toast.message("Deleted message "+id+".");
      }
      return !!e;
    };