0
0
Fork 0
mirror of https://gitlab.com/Oreolek/salet-module.git synced 2024-07-02 23:05:02 +03:00

linkre fix

This commit is contained in:
Alexander Yakovlev 2017-10-27 20:49:48 +07:00
parent 75f4e96de1
commit e0bbfdb6d7
2 changed files with 3 additions and 3 deletions

View file

@ -197,7 +197,7 @@ class Salet
each one, and processLink manages this. each one, and processLink manages this.
### ###
@processOneLink = (code) -> @processOneLink = (code) ->
match = code.match(@linkRe) match = code.match(@view.linkRe)
if not match if not match
console.error "link_not_valid".l() console.error "link_not_valid".l()
console.error code console.error code

View file

@ -22,9 +22,9 @@ class SaletView
href = a.attr('href') href = a.attr('href')
if a.hasClass("once") || href.match(/[?&]once[=&]?/) if a.hasClass("once") || href.match(/[?&]once[=&]?/)
salet.view.clearLinks(href) salet.view.clearLinks(href)
if href.match(salet.linkRe) if href.match(@linkRe)
salet.processClick(href) salet.processClick(href)
if href.match(salet.verbRe) if href.match(@verbRe)
salet.processVerb(href) salet.processVerb(href)
) )
$("#load").on("click", "a", (event) -> $("#load").on("click", "a", (event) ->