Skip to content

Instantly share code, notes, and snippets.

@d30jeff
Created March 16, 2015 01:54
Show Gist options
  • Save d30jeff/52d077fa908c6f43af15 to your computer and use it in GitHub Desktop.
Save d30jeff/52d077fa908c6f43af15 to your computer and use it in GitHub Desktop.
change
switch(msgType) {
fadeTarget.children[0].children[1].children[0].innerHTML = 'Success';
case 'create':
domClass.add(fadeTarget, 'lightblueColor');
domClass.add(fadeTarget.children[0].children[0], 'popupCreate');
boxColor = 'lightblueColor';
boxIcon = 'popupCreate';
break;
case 'update':
domClass.add(fadeTarget, 'lightgreenColor');
domClass.add(fadeTarget.children[0].children[0], 'popupUpdate');
//fadeTarget.children[0].children[1].children[0].innerHTML = 'Success';
boxColor = 'lightgreenColor';
boxIcon = 'popupUpdate';
break;
case 'delete':
domClass.add(fadeTarget, 'lightgreyColor');
domClass.add(fadeTarget.children[0].children[0], 'popupDelete');
//fadeTarget.children[0].children[1].children[0].innerHTML = 'Success';
boxColor = 'lightgreyColor';
boxIcon = 'popupDelete';
break;
default: break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment