Use , instead of -url
This commit is contained in:
parent
f1c2ca4691
commit
6eba459a7b
@ -1592,7 +1592,7 @@
|
||||
return;
|
||||
}
|
||||
as = $$('#full-board-list a', Header.bar);
|
||||
nodes = text.match(/[\w@]+(-(all|title|replace|full|index|catalog|url:"[^"]+[^"]"|text:"[^"]+"))*|[^\w@]+/g).map(function(t) {
|
||||
nodes = text.match(/[\w@]+((-(all|title|replace|full|index|catalog|url:"[^"]+[^"]"|text:"[^"]+")|\,"[^"]+[^"]"))*|[^\w@]+/g).map(function(t) {
|
||||
var a, board, m, _i, _len;
|
||||
|
||||
if (/^[^\w@]/.test(t)) {
|
||||
@ -1609,8 +1609,8 @@
|
||||
}
|
||||
if (/^external/.test(t)) {
|
||||
a = $.el('a', {
|
||||
href: (t.match(/-url:"(.+)"/) || [null, '+'])[1],
|
||||
textContent: (t.match(/-text:"(.+)"-/) || [null, '+'])[1],
|
||||
href: (t.match(/\,"(.+)"/) || [null, '+'])[1],
|
||||
textContent: (t.match(/-text:"(.+)"\,/) || [null, '+'])[1],
|
||||
className: 'external',
|
||||
target: '_blank'
|
||||
});
|
||||
|
||||
@ -1588,7 +1588,7 @@
|
||||
return;
|
||||
}
|
||||
as = $$('#full-board-list a', Header.bar);
|
||||
nodes = text.match(/[\w@]+(-(all|title|replace|full|index|catalog|url:"[^"]+[^"]"|text:"[^"]+"))*|[^\w@]+/g).map(function(t) {
|
||||
nodes = text.match(/[\w@]+((-(all|title|replace|full|index|catalog|url:"[^"]+[^"]"|text:"[^"]+")|\,"[^"]+[^"]"))*|[^\w@]+/g).map(function(t) {
|
||||
var a, board, m, _i, _len;
|
||||
|
||||
if (/^[^\w@]/.test(t)) {
|
||||
@ -1605,8 +1605,8 @@
|
||||
}
|
||||
if (/^external/.test(t)) {
|
||||
a = $.el('a', {
|
||||
href: (t.match(/-url:"(.+)"/) || [null, '+'])[1],
|
||||
textContent: (t.match(/-text:"(.+)"-/) || [null, '+'])[1],
|
||||
href: (t.match(/\,"(.+)"/) || [null, '+'])[1],
|
||||
textContent: (t.match(/-text:"(.+)"\,/) || [null, '+'])[1],
|
||||
className: 'external',
|
||||
target: '_blank'
|
||||
});
|
||||
|
||||
@ -1590,7 +1590,7 @@
|
||||
return;
|
||||
}
|
||||
as = $$('#full-board-list a', Header.bar);
|
||||
nodes = text.match(/[\w@]+(-(all|title|replace|full|index|catalog|url:"[^"]+[^"]"|text:"[^"]+"))*|[^\w@]+/g).map(function(t) {
|
||||
nodes = text.match(/[\w@]+((-(all|title|replace|full|index|catalog|url:"[^"]+[^"]"|text:"[^"]+")|\,"[^"]+[^"]"))*|[^\w@]+/g).map(function(t) {
|
||||
var a, board, m, _i, _len;
|
||||
|
||||
if (/^[^\w@]/.test(t)) {
|
||||
@ -1607,8 +1607,8 @@
|
||||
}
|
||||
if (/^external/.test(t)) {
|
||||
a = $.el('a', {
|
||||
href: (t.match(/-url:"(.+)"/) || [null, '+'])[1],
|
||||
textContent: (t.match(/-text:"(.+)"-/) || [null, '+'])[1],
|
||||
href: (t.match(/\,"(.+)"/) || [null, '+'])[1],
|
||||
textContent: (t.match(/-text:"(.+)"\,/) || [null, '+'])[1],
|
||||
className: 'external',
|
||||
target: '_blank'
|
||||
});
|
||||
|
||||
@ -132,7 +132,7 @@ Header =
|
||||
$.rmAll list
|
||||
return unless text
|
||||
as = $$('#full-board-list a', Header.bar)
|
||||
nodes = text.match(/[\w@]+(-(all|title|replace|full|index|catalog|url:"[^"]+[^"]"|text:"[^"]+"))*|[^\w@]+/g).map (t) ->
|
||||
nodes = text.match(/[\w@]+((-(all|title|replace|full|index|catalog|url:"[^"]+[^"]"|text:"[^"]+")|\,"[^"]+[^"]"))*|[^\w@]+/g).map (t) ->
|
||||
if /^[^\w@]/.test t
|
||||
return $.tn t
|
||||
if /^toggle-all/.test t
|
||||
@ -144,8 +144,8 @@ Header =
|
||||
return a
|
||||
if /^external/.test t
|
||||
a = $.el 'a',
|
||||
href: (t.match(/-url:"(.+)"/) || [null, '+'])[1]
|
||||
textContent: (t.match(/-text:"(.+)"-/) || [null, '+'])[1]
|
||||
href: (t.match(/\,"(.+)"/) || [null, '+'])[1]
|
||||
textContent: (t.match(/-text:"(.+)"\,/) || [null, '+'])[1]
|
||||
className: 'external'
|
||||
target: '_blank'
|
||||
return a
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
<div>Custom text link: <code>board-text:"VIP Board"</code></div>
|
||||
<div>Index-only link: <code>board-index</code></div>
|
||||
<div>Catalog-only link: <code>board-catalog</code></div>
|
||||
<div>External link: <code>external-text:"Google"-url:"http://www.google.com"</code></div>
|
||||
<div>External link: <code>external-text:"Google","http://www.google.com"</code></div>
|
||||
<div>Combinations are possible: <code>board-index-text:"VIP Index"</code></div>
|
||||
<div>Full board list toggle: <code>toggle-all</code></div>
|
||||
</fieldset>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user