How to use the messages function from request

Find comprehensive JavaScript request.messages code examples handpicked from public code repositorys.

351
352
353
354
355
356
357
358
359
360
361
  Request.putOrPost(
    "/character",
    character.id,
    { character: character },
    () => {
      Request.messages("Saved " + character.name);
    });
};


//========================================================================
fork icon1
star icon1
watch icon0

29
30
31
32
33
34
35
36
37
38
39


  Request.putOrPost("/figure",
                    figure.id,
                    { figure: figure },
                    () => {
                      Request.messages("Saved " + figure.name);
                      figure = { factions: [], type: "hero" };
                      m.route.set("/figures")
                    });
};
fork icon1
star icon1
watch icon0