forked from oitozero/ngSweetAlert
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix for root project error: t4t5/sweetalert#127
- Loading branch information
ekaram
committed
Oct 7, 2015
1 parent
863ac0a
commit 23971e5
Showing
2 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
"use strict";angular.module("oitozero.ngSweetAlert",[]).factory("SweetAlert",["$rootScope",function($rootScope){var swal=window.swal,self={swal:function(arg1,arg2,arg3){$rootScope.$evalAsync(function(){"function"==typeof arg2?swal(arg1,function(isConfirm){$rootScope.$evalAsync(function(){arg2(isConfirm)})},arg3):swal(arg1,arg2,arg3)})},success:function(title,message){$rootScope.$evalAsync(function(){swal(title,message,"success")})},error:function(title,message){$rootScope.$evalAsync(function(){swal(title,message,"error")})},warning:function(title,message){$rootScope.$evalAsync(function(){swal(title,message,"warning")})},info:function(title,message){$rootScope.$evalAsync(function(){swal(title,message,"info")})}};return self}]); | ||
/** | ||
@fileOverview | ||
@toc | ||
*/ | ||
"use strict" | ||
angular.module("oitozero.ngSweetAlert",[]).factory("SweetAlert",["$rootScope",function(n){var o=window.swal,c={swal:function(c,t,u){n.$evalAsync(function(){"function"==typeof t?o(c,function(o){n.$evalAsync(function(){t(o)})},u):o(c,t,u)})},success:function(c,t){n.$evalAsync(function(){o(c,t,"success")})},error:function(c,t){n.$evalAsync(function(){o(c,t,"error")})},warning:function(c,t){n.$evalAsync(function(){o(c,t,"warning")})},info:function(c,t){n.$evalAsync(function(){o(c,t,"info")})},showInputError:function(c){n.$evalAsync(function(){o.showInputError(c)})},close:function(){n.$evalAsync(function(){o.close(),window.onkeydown=null,window.onfocus=null})}} | ||
return c}]) |