Skip to content

Commit

Permalink
Dev Javascript rename folder.
Browse files Browse the repository at this point in the history
Dev Fixed some erroneous includes.
  • Loading branch information
SamMousa committed Aug 7, 2013
1 parent 1d6fa9d commit bba0dc8
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions application/config/third_party.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,13 @@
'jquery'
)
),
'jquery-actual' => array(
'baseUrl' => 'third_party/jquery-actual/',
'js' => array(
'jquery.actual.min.js'
),
'depends' => array(
'jquery'
)
),
);
4 changes: 2 additions & 2 deletions application/controllers/admin/dataentry.php
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ public function editdata($subaction, $id, $surveyid, $language='')
}
$aDataentryoutput .="</div>";
$aDataentryoutput .= '</div>';
App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('generalscripts') . 'jquery/jquery.actual/jquery.actual.min.js');
App()->getClientScript()->registerPackage('jquery-actual');
App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('generalscripts') . 'ranking.js');
App()->getClientScript()->registerCssFile(Yii::app()->getConfig('publicstyleurl') . 'ranking.css');
$aDataentryoutput .= "<script type='text/javascript'>\n"
Expand Down Expand Up @@ -2134,7 +2134,7 @@ public function view($surveyid, $lang=NULL)
$answers[] = $ansrow;
}
$cdata['answers']=$answers;
App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('generalscripts') . 'jquery/jquery.actual/jquery.actual.min.js');
App()->getClientScript()->registerPackage('jquery-actual');
App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('generalscripts') . 'ranking.js');
App()->getClientScript()->registerCssFile(Yii::app()->getConfig('publicstyleurl') . 'ranking.css');
unset($answers);
Expand Down
4 changes: 2 additions & 2 deletions application/helpers/qanda_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -2085,9 +2085,9 @@ function do_ranking($ia)
$answer.="<div id=\"htmlblock-{$ia['0']}-{$ansrow['code']}\">{$ansrow['answer']}</div>";
}
$answer .="</div>";
Yii::app()->getClientScript()->registerScriptFile(App()->baseUrl."/third_party/jquery.actual/jquery.actual.min.js"); // Needed to with jq1.9 ?
App()->getClientScript()->registerPackage('jquery-actual'); // Needed to with jq1.9 ?
Yii::app()->getClientScript()->registerScriptFile(Yii::app()->getConfig('generalscripts')."ranking.js");
Yii::app()->getClientScript()->registerCssFile("ranking.css");
Yii::app()->getClientScript()->registerCssFile(Yii::app()->getConfig('publicstyleurl') . "ranking.css");

if(trim($aQuestionAttributes['choice_title'][$clang->langcode]) != '')
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit bba0dc8

Please sign in to comment.