|
- $(".form_date1").datetimepicker({
- format: 'yyyy-mm-dd',
- autoclose:true,
- minView:2,
- pickerPosition:"bottom-left"
- });
-
- $(".form_date2").datetimepicker({
- format: 'yyyy-mm-dd',
- autoclose:true,
- minView:2,
- pickerPosition:"bottom-left"
- });
-
- window.z = (function ($) {
-
- });
-
- z.showModal = function (target, url, param, callback) {
-
- var csrfToken = yii.getCsrfToken();
- $(target).on('pjax:success', function () {
- if (typeof callback !== 'undefined' && callback.call)
- callback();
- closeLoading();
- });
-
- $.pjax.reload({
- container: target,
- url: url,
- data: {param: param, _csrf: csrfToken},
- timeout: false,
- replace: false
- })
- };
-
- z.hideModal = function (target) {
- $(target).modal('hide');
- };
-
- function closeLoading() {
- $("button[type='submit']").attr('disabled', false);
- if ($("#screen-cover").length > 0)
- $("#screen-cover").remove();
- }
|