0
0
Fork 0
mirror of https://gitlab.com/Oreolek/salet-module.git synced 2024-06-28 21:05:03 +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.
###
@processOneLink = (code) ->
match = code.match(@linkRe)
match = code.match(@view.linkRe)
if not match
console.error "link_not_valid".l()
console.error code

View file

@ -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) ->