By Alexandre Cayer on Thursday, 26 June 2014
Posted in Technical Issues
Likes 0
Views 1K
Votes 0
Hi Guys,

Was making some test on the dialog of the calendar. Tried to add a JQuery UI Slider to "manually add some time" to start time that will then reflect on the end time. I have tried 10 different sets of code and no one worked. There isn't any grid.slider or form.slider to use the html function and i don't know what to do

here is some section of code:

"{slider}" : "[data-schedule-slider]"
}
</selectors>
<bindings type="javascript">
{
"{cancelButton} click": function() {
this.parent.close();
},
"{slider} onload": function() {
$( "#slider" ).slider();
},
}
</bindings>
(...)

<div class="form-group">
<div class="col-sm-3">
<label for="total" class="fd-small">Add meeting hour(s)</label>
<i class="icon-es-help pull-right" data-es-provide="popover" data-content="<?php echo JText::_( 'APP_CALENDAR_CREATE_NEW_SCHEDULE_ENDDATE_DESC' );?>" data-title="<?php echo JText::_( 'APP_CALENDAR_CREATE_NEW_SCHEDULE_ENDDATE' );?>" data-placement="bottom"></i>
</div>

<div class="col-sm-9">
<div data-schedule-slider id="slider"></div>
</div>
</div>


My guess would be that it isn't working, whatever of the 10th times I try lol

Can someone provide me some modifications or a workaround.

Thanks

Alex
Sorry but there's no work around for this currently. The dialog are rendered via AJAX and you probably need to add your slider codes on the page load and only render them on the dialog.
·
Thursday, 26 June 2014 11:44
·
0 Likes
·
0 Votes
·
0 Comments
·
ouch... ok
I'll work on the calendar a little bit later then, will need more sustainable attention
·
Thursday, 26 June 2014 11:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alexandre,

Noted We'll see what can be done in the near future.
·
Thursday, 26 June 2014 15:23
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post