MCPcopy
hub / github.com/hedgedoc/hedgedoc / showMessageModal

Function showMessageModal

public/js/index.js:1169–1187  ·  view source on GitHub ↗
(title, header, href, text, success)

Source from the content-addressed store, hash-verified

1167}, 200)
1168
1169function showMessageModal (title, header, href, text, success) {
1170 const modal = $('.message-modal')
1171 modal.find('.modal-title').html(title)
1172 modal.find('.modal-body h5').html(header)
1173 if (href) {
1174 modal.find('.modal-body a').attr('href', href).text(text)
1175 } else {
1176 modal.find('.modal-body a').removeAttr('href').text(text)
1177 }
1178 modal
1179 .find('.modal-footer button')
1180 .removeClass('btn-default btn-success btn-danger')
1181 if (success) {
1182 modal.find('.modal-footer button').addClass('btn-success')
1183 } else {
1184 modal.find('.modal-footer button').addClass('btn-danger')
1185 }
1186 modal.modal('show')
1187}
1188
1189// check if dropbox app key is set and load scripts
1190if (DROPBOX_APP_KEY) {

Callers 2

index.jsFile · 0.85
importFromUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected