Skip to content

Commit

Permalink
Dev: replaced pjax:complete with pjax:scriptcomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Nov 24, 2017
1 parent c3876e4 commit 659c729
Show file tree
Hide file tree
Showing 131 changed files with 164 additions and 164 deletions.
2 changes: 1 addition & 1 deletion application/extensions/FlashMessage/assets/js/notify.js
@@ -1,4 +1,4 @@
$(document).on('ready pjax:complete', function(){
$(document).on('ready pjax:scriptcomplete', function(){
if($('.side-body').length){
//$('#update-container').removeClass();

Expand Down
@@ -1,4 +1,4 @@
$(document).on('ready pjax:complete',function() {
$(document).on('ready pjax:scriptcomplete',function() {
var removeRow = function ()
{
// Don't remove last row.
Expand Down
Expand Up @@ -277,7 +277,7 @@ function getDefaultDateTimePickerSettings() {
}


$(document).on('ready pjax:complete', function() {
$(document).on('ready pjax:scriptcomplete', function() {

prepareBsSwitchBoolean(gridId);
prepareBsSwitchInteger(gridId);
Expand Down
Expand Up @@ -4,7 +4,7 @@
* This JavaScript will reload the grid on page size change
*/

$(document).on('ready pjax:complete', function() {
$(document).on('ready pjax:scriptcomplete', function() {
jQuery(function($)
{
jQuery(document).on("change", '#pageSize', function()
Expand Down
Expand Up @@ -36,7 +36,7 @@ function loadPositionWidget()
});
}

$(document).on('ready pjax:complete', function() {
$(document).on('ready pjax:scriptcomplete', function() {
// First, we load the position widget
loadPositionWidget();

Expand Down
Expand Up @@ -14098,7 +14098,7 @@ var BFHTimezonesList = {
/* COLORPICKER DATA-API
* ============== */

$(document).on('ready pjax:complete', function () {
$(document).on('ready pjax:scriptcomplete', function () {
$('div.bfh-colorpicker').each(function () {
var $colorpicker;

Expand Down Expand Up @@ -14308,7 +14308,7 @@ var BFHTimezonesList = {
/* COUNTRY DATA-API
* ============== */

$(document).on('ready pjax:complete', function () {
$(document).on('ready pjax:scriptcomplete', function () {
$('form select.bfh-countries, span.bfh-countries, div.bfh-countries').each(function () {
var $countries;

Expand Down Expand Up @@ -14524,7 +14524,7 @@ var BFHTimezonesList = {
/* CURRENCY DATA-API
* ============== */

$(document).on('ready pjax:complete', function () {
$(document).on('ready pjax:scriptcomplete', function () {
$('form select.bfh-currencies, span.bfh-currencies, div.bfh-currencies').each(function () {
var $currencies;

Expand Down Expand Up @@ -15106,7 +15106,7 @@ var BFHTimezonesList = {
/* DATEPICKER DATA-API
* ============== */

$(document).on('ready pjax:complete', function () {
$(document).on('ready pjax:scriptcomplete', function () {
$('div.bfh-datepicker').each(function () {
var $datepicker;

Expand Down Expand Up @@ -15293,7 +15293,7 @@ var BFHTimezonesList = {
/* FONTS DATA-API
* ============== */

$(document).on('ready pjax:complete', function () {
$(document).on('ready pjax:scriptcomplete', function () {
$('form select.bfh-fonts, span.bfh-fonts, div.bfh-fonts').each(function () {
var $fonts;

Expand Down Expand Up @@ -15476,7 +15476,7 @@ var BFHTimezonesList = {
/* FONTSIZES DATA-API
* ============== */

$(document).on('ready pjax:complete', function () {
$(document).on('ready pjax:scriptcomplete', function () {
$('form select.bfh-fontsizes, span.bfh-fontsizes, div.bfh-fontsizes').each(function () {
var $fontSizes;

Expand Down Expand Up @@ -15681,7 +15681,7 @@ var BFHTimezonesList = {
/* GOOGLE FONTS DATA-API
* ============== */

$(document).on('ready pjax:complete', function () {
$(document).on('ready pjax:scriptcomplete', function () {
$('form select.bfh-googlefonts, span.bfh-googlefonts, div.bfh-googlefonts').each(function () {
var $googleFonts;

Expand Down Expand Up @@ -15904,7 +15904,7 @@ var BFHTimezonesList = {
/* LANGUAGES DATA-API
* ============== */

$(document).on('ready pjax:complete', function () {
$(document).on('ready pjax:scriptcomplete', function () {
$('form select.bfh-languages, span.bfh-languages, div.bfh-languages').each(function () {
var $languages;

Expand Down Expand Up @@ -16211,7 +16211,7 @@ var BFHTimezonesList = {
/* NUMBER DATA-API
* ============== */

$(document).on('ready pjax:complete', function () {
$(document).on('ready pjax:scriptcomplete', function () {
$('form input[type="text"].bfh-number, form input[type="number"].bfh-number').each(function () {
var $number;

Expand Down Expand Up @@ -16485,7 +16485,7 @@ var BFHTimezonesList = {
/* PHONE DATA-API
* ============== */

$(document).on('ready pjax:complete', function () {
$(document).on('ready pjax:scriptcomplete', function () {
$('form input[type="text"].bfh-phone, form input[type="tel"].bfh-phone, span.bfh-phone').each(function () {
var $phone;

Expand Down Expand Up @@ -16826,7 +16826,7 @@ var BFHTimezonesList = {
/* SELECTBOX DATA-API
* ============== */

$(document).on('ready pjax:complete', function () {
$(document).on('ready pjax:scriptcomplete', function () {
$('div.bfh-selectbox').each(function () {
var $selectbox;

Expand Down Expand Up @@ -17054,7 +17054,7 @@ var BFHTimezonesList = {
/* SLIDER DATA-API
* ============== */

$(document).on('ready pjax:complete', function () {
$(document).on('ready pjax:scriptcomplete', function () {
$('div.bfh-slider').each(function () {
var $slider;

Expand Down Expand Up @@ -17297,7 +17297,7 @@ var BFHTimezonesList = {
/* STATES DATA-API
* ============== */

$(document).on('ready pjax:complete', function () {
$(document).on('ready pjax:scriptcomplete', function () {
$('form select.bfh-states, span.bfh-states, div.bfh-states').each(function () {
var $states;

Expand Down Expand Up @@ -17687,7 +17687,7 @@ var BFHTimezonesList = {
/* TIMEPICKER DATA-API
* ============== */

$(document).on('ready pjax:complete', function () {
$(document).on('ready pjax:scriptcomplete', function () {
$('div.bfh-timepicker').each(function () {
var $timepicker;

Expand Down Expand Up @@ -17906,7 +17906,7 @@ var BFHTimezonesList = {
/* TIMEZONES DATA-API
* ============== */

$(document).on('ready pjax:complete', function () {
$(document).on('ready pjax:scriptcomplete', function () {
$('form select.bfh-timezones, div.bfh-timezones').each(function () {
var $timezones;

Expand Down
Expand Up @@ -16,7 +16,7 @@

<!-- Call Redactor -->
<script type="text/javascript">
$(document).on('ready pjax:complete',
$(document).on('ready pjax:scriptcomplete',
function()
{
$('#redactor').redactor({
Expand Down
Expand Up @@ -15,7 +15,7 @@

<!-- Call Redactor -->
<script type="text/javascript">
$(document).on('ready pjax:complete',
$(document).on('ready pjax:scriptcomplete',
function()
{
$('#redactor').redactor({
Expand Down
Expand Up @@ -15,7 +15,7 @@

<!-- Call Redactor -->
<script type="text/javascript">
$(document).on('ready pjax:complete',
$(document).on('ready pjax:scriptcomplete',
function()
{
$('#redactor').redactor({
Expand Down
Expand Up @@ -15,7 +15,7 @@

<!-- Call Redactor -->
<script type="text/javascript">
$(document).on('ready pjax:complete',
$(document).on('ready pjax:scriptcomplete',
function()
{
$('#redactor').redactor({
Expand Down
Expand Up @@ -15,7 +15,7 @@

<!-- Call Redactor -->
<script type="text/javascript">
$(document).on('ready pjax:complete',
$(document).on('ready pjax:scriptcomplete',
function()
{
$('#redactor').redactor({
Expand Down
Expand Up @@ -15,7 +15,7 @@

<!-- Call Redactor -->
<script type="text/javascript">
$(document).on('ready pjax:complete',
$(document).on('ready pjax:scriptcomplete',
function()
{
$('#redactor').redactor({
Expand Down
2 changes: 1 addition & 1 deletion application/helpers/admin/htmleditor_helper.php
Expand Up @@ -210,7 +210,7 @@ function getInlineEditor($fieldtype, $fieldname, $fieldtext, $surveyID = null, $

$htmlcode .= ""
. "<script type=\"text/javascript\">\n"
. "$(document).on('ready pjax:complete triggerCreateCKEditor',
. "$(document).on('ready pjax:scriptcomplete triggerCreateCKEditor',
function(){
if($('#".$fieldname."').length >0){
var $oCKeditorVarName = CKEDITOR.replace('$fieldname', {
Expand Down
2 changes: 1 addition & 1 deletion application/helpers/qanda_helper.php
Expand Up @@ -2393,7 +2393,7 @@ function upload_$ia[1]() {

$answer .= '<script type="text/javascript">
var surveyid = '.Yii::app()->getConfig('surveyID').';
$(document).on("ready pjax:complete", function(){
$(document).on("ready pjax:scriptcomplete", function(){
var fieldname = "'.$ia[1].'";
var filecount = $("#"+fieldname+"_filecount").val();
var json = $("#"+fieldname).val();
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/htmleditor/pop_editor_view.php
Expand Up @@ -33,7 +33,7 @@ function closeme()
var saveChanges = false;
var sReplacementFieldTitle = '<?php eT('Placeholder fields','js');?>';
var sReplacementFieldButton = '<?php eT('Insert/edit placeholder field','js');?>';
$(document).on('ready pjax:complete', function(){
$(document).on('ready pjax:scriptcomplete', function(){
//console.log('iGroupId: '+iGroupId);
// Better use try/catch to not crash JS completely
/*
Expand Down
Expand Up @@ -54,7 +54,7 @@
</div>
</div>
<script type="text/javascript">
$(document).on('ready pjax:complete', function(){
$(document).on('ready pjax:scriptcomplete', function(){

$('#<?=$entryData['name']?>').off('submit');

Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/survey/listSurveys_view.php
Expand Up @@ -65,7 +65,7 @@
e.preventDefault();
$(this).tab('show');
});
$(document).on('ready pjax:complete', function(){
$(document).on('ready pjax:scriptcomplete', function(){
if(window.location.hash){
$('#surveysystem').find('a[href='+window.location.hash+']').trigger('click');
}
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/survey/subview/tabCreate_view.php
Expand Up @@ -88,7 +88,7 @@
}
});
}
$(document).on('ready pjax:complete', function(){
$(document).on('ready pjax:scriptcomplete', function(){
sessionStorage.setItem('maxtabs', 1);

$('#navigation_back').on('click', function(e){
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/surveymenu/index.php
Expand Up @@ -128,5 +128,5 @@
}),
bindAction = surveyMenuEntryFunctions.getBindActionForSurveymenus();

$(document).on('ready pjax:complete', bindAction);
$(document).on('ready pjax:scriptcomplete', bindAction);
</script>
2 changes: 1 addition & 1 deletion application/views/admin/surveymenu_entries/index.php
Expand Up @@ -136,5 +136,5 @@
}),
bindAction = surveyMenuEntryFunctions.getBindActionForSurveymenuEntries();

$(document).on('ready pjax:complete', bindAction);
$(document).on('ready pjax:scriptcomplete', bindAction);
</script>
2 changes: 1 addition & 1 deletion application/views/admin/surveysgroups/update.php
Expand Up @@ -62,7 +62,7 @@

}
});
$(document).on('ready pjax:complete', function(){
$(document).on('ready pjax:scriptcomplete', function(){
if(window.location.hash){
$('#surveysystem').find('a[href='+window.location.hash+']').trigger('click');
}
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/themeoptions/index.php
Expand Up @@ -184,7 +184,7 @@
e.preventDefault();
$(this).tab('show');
});
$(document).on('ready pjax:complete', function(){
$(document).on('ready pjax:scriptcomplete', function(){
if(window.location.hash){
$('#themelist').find('a[href='+window.location.hash+']').trigger('click');
}
Expand Down
Expand Up @@ -32,7 +32,7 @@
<?php
if($slider_rating==1){
Yii::app()->clientScript->registerScript('doRatingStar_'.$sliderId, "
$(document).on('ready pjax:complete', function(){doRatingStar(".$sliderId.");});
$(document).on('ready pjax:scriptcomplete', function(){doRatingStar(".$sliderId.");});
",CClientScript::POS_END);
} else if($slider_rating==2) {
Yii::app()->clientScript->registerScript("doRatingSlider_".$sliderId, "
Expand Down
2 changes: 1 addition & 1 deletion assets/packages/adminbasics/js/admin_core.js
Expand Up @@ -299,7 +299,7 @@ function qTypeDropdownInit()
});
};

$(document).on('ready pjax:complete', onDocumentReadyAdminCoreq);
$(document).on('ready pjax:scriptcomplete', onDocumentReadyAdminCoreq);
}


Expand Down
2 changes: 1 addition & 1 deletion assets/packages/adminbasics/js/notifications.js
Expand Up @@ -10,7 +10,7 @@ var LS = LS || {
onDocumentReady: {}
};

$(document).on('ready pjax:complete', function() {
$(document).on('ready pjax:scriptcomplete', function() {

/**
* Log stuff
Expand Down
2 changes: 1 addition & 1 deletion assets/packages/adminpanel/lib/surveysettings.js
Expand Up @@ -30,7 +30,7 @@ $(document).on('click','[data-copy] :submit',function(){
// $(document).on('submit',"#addnewsurvey",function(){
// $('#addnewsurvey').attr('action',$('#addnewsurvey').attr('action')+location.hash);// Maybe validate before ?
// });
$(document).on('ready pjax:complete', function(){
$(document).on('ready pjax:scriptcomplete', function(){

$('#template').on('change keyup', function(event){
templatechange($(this).val(), $('#template').data('standardtemplaterooturl'), $('#template').data('templaterooturl'));
Expand Down
2 changes: 1 addition & 1 deletion assets/packages/lstutorial/build/lstutorial.js
Expand Up @@ -139,7 +139,7 @@ const TourLibrary = function () {
};


$(document).on('ready pjax:complete', function () {
$(document).on('ready pjax:scriptcomplete', function () {
if(typeof window.tourLibrary === 'undefined'){
window.tourLibrary = TourLibrary();
}
Expand Down
2 changes: 1 addition & 1 deletion assets/packages/lstutorial/build/lstutorial.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/packages/lstutorial/build/lstutorial.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/packages/lstutorial/src/main.js
Expand Up @@ -62,7 +62,7 @@ const TourLibrary = function () {
};


$(document).on('ready pjax:complete', function () {
$(document).on('ready pjax:scriptcomplete', function () {
if(typeof window.tourLibrary === 'undefined'){
window.tourLibrary = TourLibrary();
}
Expand Down
4 changes: 2 additions & 2 deletions assets/packages/pjax/pjax.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 659c729

Please sign in to comment.