Permalink
Browse files

updated toastr.js, added flush.cmd

  • Loading branch information...
1 parent 945c9df commit c51bc1f8d5a5b174c147bb1e378151f7edee35d9 @johnpapa johnpapa committed May 13, 2012
Showing with 32 additions and 3 deletions.
  1. +26 −0 flush.cmd
  2. +6 −3 toastr.js
View
@@ -0,0 +1,26 @@
+@echo off
+
+rmdir ConsoleServer /s /q
+
+for /R %%i in (.) do rmdir "%%i\Debug" /s /q
+for /R %%i in (.) do rmdir "%%i\Release" /s /q
+for /R %%i in (.) do rmdir "%%i\obj" /s /q
+for /R %%i in (.) do rmdir "%%i\bin" /s /q
+for /R %%i in (.) do rmdir "%%i\TestShadowCopy" /s /q
+for /R %%i in (.) do rmdir "%%i\TestResults" /s /q
+
+REM FOR /F "tokens=*" %%G IN ('DIR /B /S /AH *.suo') DO del "%%G" /AH
+REM FOR /F "tokens=*" %%G IN ('DIR /B /S *.user') DO del "%%G"
+FOR /F "tokens=*" %%G IN ('DIR /B /S *.gpState') DO del "%%G"
+FOR /F "tokens=*" %%G IN ('DIR /B /S *.xap') DO del "%%G"
+
+FOR /F "tokens=*" %%G IN ('DIR /B /S DebugLog*') DO del "%%G"
+FOR /F "tokens=*" %%G IN ('DIR /B /S *.bak.*.orm') DO del "%%G"
+
+FOR /F "tokens=*" %%G IN ('DIR /B /S *.incr') DO del "%%G"
+REM FOR /F "tokens=*" %%G IN ('DIR /B /S *.pdb') DO del "%%G"
+FOR /F "tokens=*" %%G IN ('DIR /B /S *.aqt') DO del "%%G"
+FOR /F "tokens=*" %%G IN ('DIR /B /S *.msi') DO del "%%G"
+FOR /F "tokens=*" %%G IN ('DIR /B /S *.tmp') DO del "%%G"
+
+
View
@@ -1,8 +1,8 @@
-// By: Hans Fjällemark and John Papa
-// https://github.com/KnockedUp/toastr
+// By: Hans Fj�llemark and John Papa
+// https://github.com/CodeSeven/toastr
//
// Modified to support css styling instead of inline styling
-// Based on original version at https://github.com/Srirangan/notifer.js/
+// Inspired by https://github.com/Srirangan/notifer.js/
(function(window, $) {
window.toastr = (function() {
@@ -89,6 +89,9 @@
}
var fadeAway = function() {
+ if ($(':focus', $toastElement).length > 0)
+ return
+
var fade = function() {
return $toastElement.fadeOut(options.fadeOut)
}

0 comments on commit c51bc1f

Please sign in to comment.