Coder Social home page Coder Social logo

Comments (11)

diracleo avatar diracleo commented on August 19, 2024 7

Fixed this issue and added more options with this new code: https://github.com/diracleo/bootstrap-clockpicker

from clockpicker.

CedCannes avatar CedCannes commented on August 19, 2024 4

I have the same issue on Firefox 34.0 and Chrome 35 installed on Ubuntu 14
When Clockpicker placed inside bootstrap modal and autoclose set to true it's work.
But if autoclose is set to false, when I click on the done button the "done" function is never called as if I had clicked outside the clickpicker to close it.

here is a fiddle to show it http://jsfiddle.net/9p61p888/

from clockpicker.

ksidibe avatar ksidibe commented on August 19, 2024

I have the same problem with Chrome 40 on Ubuntu 14.
Anybody got a fix?

from clockpicker.

ChandanNadig avatar ChandanNadig commented on August 19, 2024

Facing the same issue with Chrome 36+, Firefox and IE10. See this stack overflow question http://stackoverflow.com/questions/28814155/using-bootstrap-clockpicker-in-modal-dialog/28815535#28815535

from clockpicker.

ksidibe avatar ksidibe commented on August 19, 2024

@ChandanNadig, Indeed, that's what I ended up doing too (setting autoclose to true). And that works.
Thanks a lot.
I hope this issue is addressed in the next release because, in order to provide a consistant User Experience, I had to go through my app and set autoclose to true everywhere else.

from clockpicker.

markerictamo avatar markerictamo commented on August 19, 2024

Hi guys, I found a temporary solution for this issue, although it would disable the functionality to close the clockpicker on clicking on other elements outside the popover

look for this code in your plugin:

// Hide when clicking or tabbing on any element except the clock, input and addon
$doc.on('click.clockpicker.' + this.id + ' focusin.clockpicker.' + this.id, function(e){
     var target = $(e.target);
     if (target.closest(self.popover).length === 0 &&
         target.closest(self.addon).length === 0 &&
     target.closest(self.input).length === 0) {
             //self.hide(); - >> comment this out
     }
});

from clockpicker.

dipaksawant avatar dipaksawant commented on August 19, 2024

Hi guys,
I'm facing same problem but with different case.
I have selecting twelvehour option set to true.
When you select time it only sets to 'pm' like 12:00pm and not for 12:00am

I have updated the @CedCannes fiddle here: https://jsfiddle.net/9p61p888/3/

from clockpicker.

govindrajg avatar govindrajg commented on August 19, 2024

Hi folks,
I too have the same issue with 12 hour clock. Values are not getting updated after clicking 'Done' button. If I set to autoclose:true, then it is not waiting for the user to press 'AM' or 'PM' and by default it is updating 'input' with 'PM'.

I am using Chrome version 43 in Ubuntu.

from clockpicker.

the94air avatar the94air commented on August 19, 2024

That's a neat work. Thanks @diracleo

from clockpicker.

amirhos712 avatar amirhos712 commented on August 19, 2024

@diracleo Your script doesn't work with the default scripts options. the AM PM appears by default. Thanks

from clockpicker.

CristianJojoaCabrera avatar CristianJojoaCabrera commented on August 19, 2024

open the modal with javascript , example-> your id modal is :

Exit
**delete ->data-dismiss="modal" **add a id button or class **javascript -> $('.content_option_edit_exitr_event').show(); this was my solution , i hope to can help you

from clockpicker.

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.