Giter VIP home page Giter VIP logo

Comments (6)

mateuszmarkowski avatar mateuszmarkowski commented on July 28, 2024

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.

tmikaeld avatar tmikaeld commented on July 28, 2024

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.

mateuszmarkowski avatar mateuszmarkowski commented on July 28, 2024

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.

mateuszmarkowski avatar mateuszmarkowski commented on July 28, 2024

It has been fixed in 1.1.1.

from jquery-seat-charts.

tmikaeld avatar tmikaeld commented on July 28, 2024

Thanks for fixing it so fast, clever fix too - do nothing if the style doesn't change.

from jquery-seat-charts.

mateuszmarkowski avatar mateuszmarkowski commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.