341be027b93f8e995da8e737b3687e941693f9dc.svn-base 641 B

12345678910111213141516171819
  1. $(function() {
  2. 'use strict';
  3. window.utils = window.utils || {};
  4. $.extend(window.utils, {
  5. toast: {
  6. show: function(message, type) {
  7. type = type || 'success';
  8. var toast = $('#toastContainer').dxToast('instance');
  9. toast.option('message', message);
  10. toast.option('type', type);
  11. toast.option('contentReadyAction', function(e) {
  12. console.log(e.element.parent().css('z-index'));
  13. e.element.css('z-index', 2000);
  14. });
  15. toast.show();
  16. }
  17. }
  18. });
  19. });