1
0

utils.js 528 B

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