Skip to content

Commit

Permalink
Dev Removed obsolete jquery-ui timepicker
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Apr 26, 2016
1 parent 3d260e5 commit 2fecf48
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 23 deletions.
15 changes: 0 additions & 15 deletions application/config/third_party.php
Expand Up @@ -285,20 +285,5 @@
'css' => array(
'leaflet.css'
),
),

// Bootstrap DateRangePicker
'bootstrap-daterangepicker' => array(
'baseUrl' => 'third_party/bootstrap-daterangepicker-2.1.19/',
'js' => array(
'moment.js',
'daterangepicker.js'
),
'css' => array(
'daterangepicker.css'
),
'depends' => array(
'bootstrap'
)
)
);
2 changes: 0 additions & 2 deletions application/core/Survey_Common_Action.php
Expand Up @@ -40,8 +40,6 @@ public function __construct($controller=null, $id=null)
*/
public function runWithParams($params)
{
App()->getClientScript()->registerPackage('bootstrap-daterangepicker');

// Default method that would be called if the subaction and run() do not exist
$sDefault = 'index';

Expand Down
Expand Up @@ -112,7 +112,7 @@ public function registerClientScript()

/* @var $cs CClientScript */
$cs = Yii::app()->getClientScript();

$this->getYiiWheels()->registerAssetJs('moment.min.js');
$cs->registerCssFile($assetsUrl . '/css/bootstrap-datetimepicker.min.css');
$cs->registerScriptFile($assetsUrl . '/js/bootstrap-datetimepicker.min.js', CClientScript::POS_END);
if (isset($this->pluginOptions['language'])) {
Expand Down
2 changes: 1 addition & 1 deletion application/helpers/surveytranslator_helper.php
Expand Up @@ -960,7 +960,7 @@ function getLanguageDetails($codetosearch)
*
* @param mixed $sLocale LimeSurvey locale code
*/
function translateLStoDateTimePickerLocale($sLocale)
function convertLStoDateTimePickerLocale($sLocale)
{
// Strip informal string always for easier matching
$sLocale=str_replace('-informal','',$sLocale);
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/super/header.php
Expand Up @@ -5,7 +5,7 @@
*/
?>
<!DOCTYPE html>
<html lang="<?php echo $adminlang; ?>"<?php echo $languageRTL;?> >
<html lang="<?php echo str_replace('-informal','',$adminlang); ?>"<?php echo $languageRTL;?> >
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/survey/editLocalSettings_view.php
Expand Up @@ -9,7 +9,7 @@

<!-- Survey title -->
<div class="form-group">
<label class="col-sm-2 question-group-title control-label" for="short_title<?php echo $esrow['surveyls_language']; ?>">
<label class="col-sm-2 question-group-title control-label" for="short_title_<?php echo $esrow['surveyls_language']; ?>">
<?php eT("Survey title:"); ?>
</label>
<div class="col-sm-9">
Expand Down
Expand Up @@ -42,7 +42,8 @@
'drops' => 'up', // TODO: Does not work. Why?
'timePicker' => true,
'timePicker12Hour' => false, // NB: timePicker24Hour = true does not work
'timePickerIncrement' => 1
'timePickerIncrement' => 1,
'language'=>convertLStoDateTimePickerLocale(Yii::app()->session['adminlang'])
)
));
?>
Expand Down
Expand Up @@ -12,7 +12,7 @@
<li>
<label>&nbsp;</label>
<?php echo CHtml::dropDownList('type', 'files', array('files' => gT('Files','unescaped'), 'flash' => gT('Flash','unescaped'), 'images' => gT('Images','unescaped')), array('class'=>'btn btn-default')); ?>
<a class="btn btn-default" href="<?php echo Yii::app()->getConfig('publicurl') ; ?>third_party/kcfinder/browse.php?language='<?php echo sTranslateLangCode2CK( App()->language); ?>'" type='btn btn-default btn-lg' target='_blank'>
<a class="btn btn-default" href="<?php echo Yii::app()->getConfig('publicurl') ; ?>third_party/kcfinder/browse.php?language='<?php echo sTranslateLangCode2CK( App()->language); ?>'" target='_blank'>
<?php eT("Browse uploaded resources") ?>
</a>
</li>
Expand Down

0 comments on commit 2fecf48

Please sign in to comment.