Last active
February 26, 2016 09:18
-
-
Save dimaShin/b82bc7b27299f2b390ad to your computer and use it in GitHub Desktop.
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
Counter.prototype.del = function(target){ | |
var self = this; | |
var tr = $(target).closest('tr'); | |
var undo = tr.find('.undo-button'); | |
undo.css('display', 'block'); | |
undo.one('click', function () { | |
clearTimeout(timeout); | |
undo.css('display', 'none'); | |
}) | |
var timeout = setTimeout(function () { | |
showNoti(); | |
var tr = $(target).closest('tr'); | |
tr.remove(); | |
self.updateView(); | |
}, 10000); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment