Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 98ea2f81

Přidáno uživatelem Pavel Fidranský před více než 6 roky(ů)

improved response flash messages

Zobrazit rozdíly:

sources/src/main/webapp/js/app.js
364 364

  
365 365
			self.filter.initializeSelectors(self.archetype.vertex);
366 366

  
367
		}, function() {
367
		}, function(xhr) {
368
			switch (xhr.status) {
369
				case 401:
370
					alert('You are not allowed to view the diagram.');
371
					break;
372
				default:
373
					alert('Something went wrong.');
374
			}
375

  
368 376
			// go to the upload page
369 377
			window.location.replace('./');
370 378
		});
sources/src/main/webapp/js/components/modalWindow.js
90 90
				history.replaceState({} , document.title, app.HOME_URL + 'graph?diagramId=' + app.diagram.id);
91 91

  
92 92
				self.close();
93
				alert('Saved.');
93
				alert('Diagram was successfully saved.');
94 94
			},
95 95
			'error': function(xhr) {
96 96
				switch (xhr.status) {
sources/src/main/webapp/js/userMenu.js
96 96
				document.dispatchEvent(new CustomEvent('imiger.userRegistered'));
97 97

  
98 98
				registerPopup.classList.add('hidden');
99
				alert('You were successfully registered.');
99 100
			},
100 101
			'error': function(xhr) {
101 102
				switch (xhr.status) {

Také k dispozici: Unified diff