Use , instead of -url

This commit is contained in:
Jordan Bates 2013-05-10 03:44:27 -07:00
parent f1c2ca4691
commit 6eba459a7b
5 changed files with 13 additions and 13 deletions

View File

@ -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'
});

View File

@ -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'
});

View File

@ -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'
});

View File

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

View File

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