jeudi 26 janvier 2017

Ember don't allow bootstrap datetime picker

I have problem with daterange picker and Ember.

On Ember1.10. index.html page on bottom i put

<script type="text/javascript">
 $(function () {
          $('#datetimepicker1').datetimepicker();
            });
 </script>

that works for me, until in random route where i use datarange define model

App.RandomRoute=Ember.Route.extend({
   model:function(){
     return this.store.find('user');
   }})

Problem is when i return some value in model function,

<input type="text" name="daterange" value="01/01/2015 1:30 PM - 01/01/2015 2:00 PM" />

html render this input like normal input type text,don't allow calendar pop-up




Aucun commentaire:

Enregistrer un commentaire