utils.js 503 B

12345678910111213141516171819202122
  1. export function renderErrorMessage (dom_obj_target, message_text) {
  2. dom_obj_target.popup({
  3. html : '<i class="ui icon inverted exclamation triangle yellow"></i>' + message_text,
  4. transition : "fade up",
  5. on : 'click',
  6. closable : true,
  7. movePopup : true,
  8. boundary : window,
  9. preserve : false,
  10. target : false,
  11. className : {
  12. popup : 'ui popup invalid-identifier'
  13. },
  14. onHidden : function($module) {
  15. dom_obj_target.popup('destroy');
  16. }
  17. }).popup('toggle');
  18. }