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:
parent
75f4e96de1
commit
e0bbfdb6d7
|
@ -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
|
||||||
|
|
|
@ -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) ->
|
||||||
|
|
Loading…
Reference in a new issue