Skip to content

Commit

Permalink
Dev: replaced aria-data-* by data-*
Browse files Browse the repository at this point in the history
  • Loading branch information
louis committed Aug 28, 2015
1 parent 5b9c628 commit 3a4a4a2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions application/views/admin/update/_ajaxVariables.php
Expand Up @@ -34,12 +34,12 @@
<input type="hidden" id="access_tokenForAjax" value="<?php echo $_REQUEST['access_token']; ?>"/>
<?php endif;?>

<input id="updatebothbranchdatas" type="hidden" aria-data-url="<?php echo Yii::app()->createUrl("admin/update/sa/getbothbuttons"); ?>"/>
<input id="updatestrablebranchdatas" type="hidden" aria-data-url="<?php echo Yii::app()->createUrl("admin/update/sa/getstablebutton"); ?>"/>
<input id="updatebothbranchdatas" type="hidden" data-url="<?php echo Yii::app()->createUrl("admin/update/sa/getbothbuttons"); ?>"/>
<input id="updatestrablebranchdatas" type="hidden" data-url="<?php echo Yii::app()->createUrl("admin/update/sa/getstablebutton"); ?>"/>

<input id="newkeyurl" type="hidden" aria-data-url="<?php echo Yii::app()->createUrl("admin/update/sa/getnewkey"); ?>"/>
<input id="filesystemurl" type="hidden" aria-data-url="<?php echo Yii::app()->createUrl("admin/update/sa/fileSystem"); ?>"/>
<input id="checklocalerrorsurl" type="hidden" aria-data-url="<?php echo Yii::app()->createUrl("admin/update/sa/checkLocalErrors"); ?>"/>
<input id="welcomeurl" type="hidden" aria-data-url="<?php echo Yii::app()->createUrl("admin/update/sa/getwelcome"); ?>"/>
<input id="newkeyurl" type="hidden" data-url="<?php echo Yii::app()->createUrl("admin/update/sa/getnewkey"); ?>"/>
<input id="filesystemurl" type="hidden" data-url="<?php echo Yii::app()->createUrl("admin/update/sa/fileSystem"); ?>"/>
<input id="checklocalerrorsurl" type="hidden" data-url="<?php echo Yii::app()->createUrl("admin/update/sa/checkLocalErrors"); ?>"/>
<input id="welcomeurl" type="hidden" data-url="<?php echo Yii::app()->createUrl("admin/update/sa/getwelcome"); ?>"/>


4 changes: 2 additions & 2 deletions scripts/admin/comfortupdate/buildComfortButtons.js
Expand Up @@ -12,8 +12,8 @@ $.fn.buildComfortButtons = function(options)
$(this).on('click', function(e){
// First, we check the required branches, depending of the user choice "Show update notifications: "

$urlBothButton = $("#updatebothbranchdatas").attr('aria-data-url'); // URL generated by yii inside _ajaxVariable view
$urlStableButton = $("#updatestrablebranchdatas").attr('aria-data-url'); // URL generated by yii inside _ajaxVariable view
$urlBothButton = $("#updatebothbranchdatas").attr('data-url'); // URL generated by yii inside _ajaxVariable view
$urlStableButton = $("#updatestrablebranchdatas").attr('data-url'); // URL generated by yii inside _ajaxVariable view
$url = $("#updateBranch").val() == "both" ? $urlBothButton : $urlStableButton; // #updateBranch generated by php update controller inside the view)

//We show the loader
Expand Down
8 changes: 4 additions & 4 deletions scripts/admin/comfortupdate/displayComfortStep.js
Expand Up @@ -36,21 +36,21 @@ $.fn.displayComfortStep = function(options)
switch(params.step) {

case "newKey":
$url = $("#newkeyurl").attr('aria-data-url');
$url = $("#newkeyurl").attr('data-url');
$("#welcome").hide();
$("#newKey").show();
break;

case "checkFiles":
$url = $("#filesystemurl").attr('aria-data-url');
$url = $("#filesystemurl").attr('data-url');
break;

case "checkLocalErrors":
$url = $("#checklocalerrorsurl").attr('aria-data-url');
$url = $("#checklocalerrorsurl").attr('data-url');
break;

case "welcome":
$url = $("#welcomeurl").attr('aria-data-url');
$url = $("#welcomeurl").attr('data-url');
break;

}
Expand Down

0 comments on commit 3a4a4a2

Please sign in to comment.