Changeset 7400 for branches/2.4/prototype
- Timestamp:
- 10/10/12 11:16:50 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/prototype/modules/calendar/js/helpers.js
r7382 r7400 2719 2719 var type = ''; 2720 2720 2721 if(!!data.result && data.result == "[][[]]"){ 2722 msg = 'Não foram encontrados novos eventos na importação!'; 2723 type = 'information'; 2724 }else if(!!data.result && data.result == '[][false]'){ 2725 msg = 'Erro ao realizar a importação, por favor verifique o arquivo .ics'; 2726 type = 'warning'; 2721 if(!!data.result && data.result == '[][""]' || data.result.indexOf('Error') >= 0 ){ 2722 msg = 'Erro ao realizar a importação, por favor verifique o arquivo .ics'; 2723 type = 'warning'; 2724 2727 2725 }else{ 2728 msg = 'Importação realizada com sucesso!'; 2729 type = 'confirmation'; 2730 Calendar.rerenderView(true); 2731 } 2726 2727 if(data.result.indexOf('schedulable') >= 0){ 2728 msg = 'Importação realizada com sucesso!'; 2729 type = 'confirmation'; 2730 Calendar.rerenderView(true); 2731 }else{ 2732 var res = JSON.parse(data.result); 2733 var asData = false; 2734 2735 for(var i = 0; i < res.length; i++) 2736 if(res[i].length > 0) 2737 asData = true; 2738 2739 if(asData){ 2740 msg = 'Importação realizada com sucesso!'; 2741 type = 'confirmation'; 2742 Calendar.rerenderView(true); 2743 }else{ 2744 msg = 'Não foram encontrados novos eventos na importação!'; 2745 type = 'information'; 2746 } 2747 } 2748 } 2732 2749 2733 2750 $.Zebra_Dialog(msg, {
Note: See TracChangeset
for help on using the changeset viewer.