Skip to content

Commit

Permalink
Dev: Remove unused jquery ui
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Apr 25, 2016
1 parent 74e25b0 commit 50dd8cd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions application/controllers/AdminController.php
Expand Up @@ -285,8 +285,6 @@ public function _getAdminHeader($meta = false, $return = false)

$aData['baseurl'] = Yii::app()->baseUrl . '/';
$aData['datepickerlang']="";
if ($aData['adminlang'] != 'en')
Yii::app()->getClientScript()->registerScriptFile(App()->baseUrl . "/third_party/jqueryui/development-bundle/ui/i18n/jquery.ui.datepicker-" . $aData['adminlang'] .".js");

$aData['sitename'] = Yii::app()->getConfig("sitename");
$aData['firebug'] = useFirebug();
Expand Down
9 changes: 0 additions & 9 deletions application/helpers/qanda_helper.php
Expand Up @@ -1088,17 +1088,8 @@ function do_date($ia)
else
{
//register timepicker extension
//App()->getClientScript()->registerPackage('jqueryui-timepicker');
App()->getClientScript()->registerPackage('bootstrap-daterangepicker');

// Locale for datepicker and timpicker extension
if (App()->language !== 'en')
{
// TODO: Multi-lang
//Yii::app()->getClientScript()->registerScriptFile(App()->getConfig('third_party')."/jqueryui/development-bundle/ui/i18n/jquery.ui.datepicker-".App()->language.".js");
//Yii::app()->getClientScript()->registerScriptFile(App()->getConfig('third_party')."/jquery-ui-timepicker-addon/i18n/jquery-ui-timepicker-".App()->language.".js");
}

// Format the date for output
$dateoutput = trim($_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$ia[1]]);
if ($dateoutput!='' & $dateoutput!='INVALID')
Expand Down

0 comments on commit 50dd8cd

Please sign in to comment.