Comments (6)
Hmm, I did a quick test with the demo page:
$('#seat-map').seatCharts().status(['9_1', '9_2'], 'unavailable');
Yet it appears to work correctly. Unavailable seats remain unavailable when I hover them. Could you possibly upload some demo code where I could repeat your problem?
JSC doesn't have any special callback for hover. It has a common callback for both keyboard and mouse focus (which is hover). So when you hover a seat or select it with an arrow, focus event is fired, when you move away to some different seat, blur will be fired for that seat.
from jquery-seat-charts.
It happens when i try it on your demo page too, if i run $('#seat-map').seatCharts().status(['9_1', '9_2'], 'unavailable'); twice and then hover over the unavailable seats.
Tried it with Firefox, Chrome (latest versions) on OS X Yosemite and also IE9 on Windows 7 64-bit.
from jquery-seat-charts.
Got it, the key is to change status to unavailable twice.
A temporary fix would be to filter out unavailable loads from the array:
$('#seat-map').seatCharts().get(['9_1', '9_2']).find('available').status('unavailable');
However, I'll work on a proper fix as it appears to be a bug.
from jquery-seat-charts.
It has been fixed in 1.1.1.
from jquery-seat-charts.
Thanks for fixing it so fast, clever fix too - do nothing if the style doesn't change.
from jquery-seat-charts.
Sure, it turned out to be a very easy fix - just a missing return value when status shouldn't change.
from jquery-seat-charts.
Related Issues (20)
- the first seat is changed green when clicked blank area HOT 1
- Testing
- Empty seats skip sorting problems HOT 1
- How do I change seats in mobile?
- Make seat chart responsive and scalable HOT 3
- Click on chart space in a map bigger then screen moves map up.
- Skip Seat Numbers for each underscore character HOT 5
- dynamic kinds of seats
- this.data() show empty when i click
- lost focus when remap
- 当座位区域出现滚动条时,滚动到底部后,点击选座区域里的空白处后,区域会滚动顶部是什么原因?
- First seat gets selected when clicking elsewhere HOT 4
- Dynamic Seats with Php
- Different columns same map
- generar 2 mapas de asientos sin separar
- Shitty Repo HOT 2
- Old Selected Seats Are there in New Seatchart
- Unicode in Seat Label
- Tooltip when focused
- Individual seat pricing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-seat-charts.