mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
afd63c1d49
commit
0414b40ff6
@ -631,7 +631,6 @@ var BrowserPrototype = {
|
|||||||
.attr(Object.assign({},
|
.attr(Object.assign({},
|
||||||
item.attrs || {},
|
item.attrs || {},
|
||||||
{
|
{
|
||||||
tabindex: '0',
|
|
||||||
value: JSON.stringify(item.value || item),
|
value: JSON.stringify(item.value || item),
|
||||||
}))
|
}))
|
||||||
// value...
|
// value...
|
||||||
@ -645,10 +644,8 @@ var BrowserPrototype = {
|
|||||||
// XXX things to work out:
|
// XXX things to work out:
|
||||||
// - order -- should be ltr and not rtl (???)
|
// - order -- should be ltr and not rtl (???)
|
||||||
.append($('<span class="button"/>')
|
.append($('<span class="button"/>')
|
||||||
.attr('tabindex', '0')
|
|
||||||
.html('□'))
|
.html('□'))
|
||||||
.append($('<span class="button"/>')
|
.append($('<span class="button"/>')
|
||||||
.attr('tabindex', '0')
|
|
||||||
.html('○'))
|
.html('○'))
|
||||||
// events...
|
// events...
|
||||||
.run(function(){
|
.run(function(){
|
||||||
@ -663,6 +660,11 @@ var BrowserPrototype = {
|
|||||||
.forEach(function([evt, handler]){
|
.forEach(function([evt, handler]){
|
||||||
handler
|
handler
|
||||||
&& e.on(evt, handler) }) })
|
&& e.on(evt, handler) }) })
|
||||||
|
// setup tabindex on non-disabled items...
|
||||||
|
.run(function(){
|
||||||
|
item.disabled
|
||||||
|
|| $([this[0], ...this.find('.button')]).attr('tabindex', '0') })
|
||||||
|
|
||||||
// XXX stub...
|
// XXX stub...
|
||||||
return elem[0]
|
return elem[0]
|
||||||
/*/
|
/*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user