Skip to content

Commit

Permalink
Add fcbkcomplete js lib in template.lib.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed May 11, 2015
1 parent 8e27328 commit 82e5898
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
3 changes: 0 additions & 3 deletions main/gradebook/gradebook_add_cat.php
Expand Up @@ -17,9 +17,6 @@

$edit_cat = isset($_REQUEST['editcat']) ? intval($_REQUEST['editcat']) : '';

$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/tag/jquery.fcbkcomplete.js" type="text/javascript" language="javascript"></script>';
$htmlHeadXtra[] = '<link href="'.api_get_path(WEB_LIBRARY_PATH).'javascript/tag/style.css" rel="stylesheet" type="text/css" />';

$htmlHeadXtra[] = '<script>
$(document).ready(function () {
$("#skills").fcbkcomplete({
Expand Down
3 changes: 0 additions & 3 deletions main/gradebook/gradebook_edit_cat.php
Expand Up @@ -12,9 +12,6 @@

$edit_cat = isset($_REQUEST['editcat']) ? intval($_REQUEST['editcat']) : '';

$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/tag/jquery.fcbkcomplete.js" type="text/javascript" language="javascript"></script>';
$htmlHeadXtra[] = '<link href="'.api_get_path(WEB_LIBRARY_PATH).'javascript/tag/style.css" rel="stylesheet" type="text/css" />';

$htmlHeadXtra[] = '<script>
$(document).ready(function() {
$("#skills").fcbkcomplete({
Expand Down
10 changes: 8 additions & 2 deletions main/inc/lib/template.lib.php
Expand Up @@ -494,6 +494,7 @@ public function setCssFiles()
}

$css[] = api_get_path(WEB_LIBRARY_PATH) . 'javascript/chosen/chosen.css';
$css[] = api_get_path(WEB_LIBRARY_PATH) . 'javascript/tag/style.css';

if (api_is_global_chat_enabled()) {
$css[] = api_get_path(WEB_LIBRARY_PATH) . 'javascript/chat/css/chat.css';
Expand Down Expand Up @@ -590,7 +591,10 @@ public function set_js_files()

if (api_is_global_chat_enabled()) {
//Do not include the global chat in LP
if ($this->show_learnpath == false && $this->show_footer == true && $this->hide_global_chat == false) {
if ($this->show_learnpath == false &&
$this->show_footer == true &&
$this->hide_global_chat == false
) {
$js_files[] = 'chat/js/chat.js';
}
}
Expand All @@ -603,6 +607,8 @@ public function set_js_files()
$js_files[] = 'asciimath/ASCIIMathML.js';
}

$js_files[] = 'tag/jquery.fcbkcomplete.js';

$js_file_to_string = null;
$isoCode = api_get_language_isocode();

Expand Down Expand Up @@ -770,7 +776,7 @@ private function set_header_parameters()
$clean_url = str_replace('/', '-', $clean_url);
$clean_url .= '/';
$homep = api_get_path(REL_PATH).'home/'.$clean_url; //homep for Home Path
$icon_real_homep = api_get_path(SYS_PATH).'home/'.$clean_url;
$icon_real_homep = api_get_path(SYS_APP_PATH).'home/'.$clean_url;

//we create the new dir for the new sites
if (is_file($icon_real_homep.'favicon.ico')) {
Expand Down

0 comments on commit 82e5898

Please sign in to comment.