Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/LimeSurvey/LimeSurvey
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Mar 24, 2016
2 parents 3788e72 + c55c3d0 commit f6ade6d
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 1,709 deletions.
2 changes: 2 additions & 0 deletions application/controllers/admin/templates.php
Expand Up @@ -952,6 +952,8 @@ protected function _initialise($templatename, $screenname, $editfile, $showsumma
// User templates (are published only if exists)
$oEditedTemplate->config->files->css->filename[]="../../../styles-public/bootstrap-for-template-editor.css";
$oEditedTemplate->config->files->js->filename[]="../../../scripts/bootstrap-for-template-editor.js";

$oEditedTemplate->config->files->css->filename[]="../../styles-public/template.css";
}

//App()->getClientScript()->reset();
Expand Down
1 change: 1 addition & 0 deletions application/controllers/survey/index.php
Expand Up @@ -62,6 +62,7 @@ public function run()
if($oTemplate->cssFramework == 'bootstrap')
{
App()->bootstrap->register();
App()->getClientScript()->registerCssFile( Yii::app()->getBaseUrl(true).'/styles-public/template.css' );
}

useFirebug();
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions templates/default/config.xml
Expand Up @@ -28,7 +28,6 @@
<filename>css/jquery-ui-custom.css</filename>
<filename>css/bootstrap-slider.css</filename>
<filename>css/flat_and_modern.css</filename>
<filename>css/template.css</filename>
</css>
<js>
<filename>scripts/template.js</filename>
Expand Down Expand Up @@ -59,7 +58,6 @@
<files_editable>
<css>
<filename>css/flat_and_modern.css</filename>
<filename>css/template.css</filename>
</css>
<js>
<filename>scripts/template.js</filename>
Expand Down
1 change: 0 additions & 1 deletion templates/minimal-config.xml
Expand Up @@ -25,7 +25,6 @@
<!-- For template editor : need fix : allow edit even if not exist-->
<files_editable>
<css>
<filename>template.css</filename>
<filename>template-rtl.css</filename>
<filename>jquery-ui.css</filename>
<filename>jquery-ui-custom.css</filename>
Expand Down
4 changes: 1 addition & 3 deletions templates/news_paper/config.xml
Expand Up @@ -27,7 +27,6 @@
<filename>css/jquery-ui-custom.css</filename>
<filename>css/bootstrap-slider.css</filename>
<filename>css/news_paper.css</filename>
<filename>css/template.css</filename>
</css>
<js>
<filename>scripts/template.js</filename>
Expand All @@ -47,7 +46,7 @@
<!-- The logo is used for now only for Surveys List -->
<logo>
<filename>files/logo.png</filename>
</logo>
</logo>
</files>

<!--
Expand All @@ -58,7 +57,6 @@
<files_editable>
<css>
<filename>css/news_paper.css</filename>
<filename>css/template.css</filename>
</css>
<js>
<filename>scripts/template.js</filename>
Expand Down

0 comments on commit f6ade6d

Please sign in to comment.