mirror of
https://gitlab.com/Oreolek/salet-module.git
synced 2024-07-01 06:15:04 +03:00
linkre fix
This commit is contained in:
parent
75f4e96de1
commit
e0bbfdb6d7
|
@ -197,7 +197,7 @@ class Salet
|
|||
each one, and processLink manages this.
|
||||
###
|
||||
@processOneLink = (code) ->
|
||||
match = code.match(@linkRe)
|
||||
match = code.match(@view.linkRe)
|
||||
if not match
|
||||
console.error "link_not_valid".l()
|
||||
console.error code
|
||||
|
|
|
@ -22,9 +22,9 @@ class SaletView
|
|||
href = a.attr('href')
|
||||
if a.hasClass("once") || href.match(/[?&]once[=&]?/)
|
||||
salet.view.clearLinks(href)
|
||||
if href.match(salet.linkRe)
|
||||
if href.match(@linkRe)
|
||||
salet.processClick(href)
|
||||
if href.match(salet.verbRe)
|
||||
if href.match(@verbRe)
|
||||
salet.processVerb(href)
|
||||
)
|
||||
$("#load").on("click", "a", (event) ->
|
||||
|
|
Loading…
Reference in a new issue