Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).off("focusin.bs.modal").on("focusin.bs.modal", $.proxy(function(ev) {
- //Здесь стоит $.proxy, поэтому внутри функции в качестве this будет проброшенный туда объект.
- //Я посмотрел, что за объект. console.log(this.$element[0]) выдаёт ссылку на div#actionModal
- if(that.$element[0] !== e.target && !that.$element.has(e.target).length) {
- this.$element.focus()
- }
- }, this))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement