• This project
    • Loading...
  • Sign in

ramster cath / new_xado

Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • new_xado
  • upload
  • 1x_adm
  • view
  • javascript
  • octemplates
  • oct_main.js
  • Рамиз Мирзаев's avatar
    Init commit · d2d06e3f
    d2d06e3f
    Рамиз Мирзаев authored 2024-08-20 10:05:28 +0300
oct_main.js 344 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
function usNotify(type, text) {
	let iconType = 'info';
	
	switch (type) {
	  case 'success':
	    iconType = 'fas fa-check';
	    break;
	  case 'danger':
	    iconType = 'fas fa-times';
	    break;
	  case 'warning':
	    iconType = 'fas fa-exclamation';
	    break;
	}
	
	$.notify({
		message: text,
		icon: iconType
	},{
		type: type
	});
}