mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00: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({},
|
||||
item.attrs || {},
|
||||
{
|
||||
tabindex: '0',
|
||||
value: JSON.stringify(item.value || item),
|
||||
}))
|
||||
// value...
|
||||
@ -645,10 +644,8 @@ var BrowserPrototype = {
|
||||
// XXX things to work out:
|
||||
// - order -- should be ltr and not rtl (???)
|
||||
.append($('<span class="button"/>')
|
||||
.attr('tabindex', '0')
|
||||
.html('□'))
|
||||
.append($('<span class="button"/>')
|
||||
.attr('tabindex', '0')
|
||||
.html('○'))
|
||||
// events...
|
||||
.run(function(){
|
||||
@ -663,6 +660,11 @@ var BrowserPrototype = {
|
||||
.forEach(function([evt, handler]){
|
||||
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...
|
||||
return elem[0]
|
||||
/*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user