E
E
EVOSandru62015-10-29 11:38:23
JavaScript
EVOSandru6, 2015-10-29 11:38:23

Why don't extension widgets work in yii after renderPartial in ajax?

Good afternoon, I registered

this construction before renderPartial :

Yii::app()->clientScript->scriptMap =
    [
      'jquery.js' 				=> false,
      'jquery.ui.js'				=> false,
      'jquery.yiiactiveform.js' 	=> false,
    ];


jquery is not duplicated.

But in the view, unfortunately, EJuiDateTimePicker and CMaskedTextField do not work out their functionality , although they are processed before renderPartial .

At the same time, firebug shows the script files of the extension: in the footer:

<script type="text/javascript" src="/assets/7e876327/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript" src="/assets/1ca2660a/jui/js/jquery-ui-i18n.min.js"></script>
<script type="text/javascript" src="/assets/7e876327/localization/jquery-ui-timepicker-ru.js"></script>


And they go below connecting to jquery

AND

<script type="text/javascript" src="/assets/1ca2660a/jquery.maskedinput.js"></script>


Goes to head also below jquery call

What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita, 2015-10-30
@bitver

$this->renderAjax()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question