N°3685 Use minified versions of jQuery UI timepicker library

This commit is contained in:
Stephen Abello
2021-09-16 10:06:06 +02:00
parent e81c02b25a
commit e3687b3cbb
2 changed files with 17 additions and 1 deletions

5
js/jquery-ui-timepicker-addon.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -153,7 +153,7 @@ class iTopWebPage extends NiceWebPage implements iTabbedPage
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.treeview.min.js');
// Used by advanced search, date(time) attributes. Coupled to the PrepareWidgets() JS function.
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery-ui-timepicker-addon.js');
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery-ui-timepicker-addon.min.js');
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery-ui-timepicker-addon-i18n.min.js');
// Tooltips
@@ -811,6 +811,17 @@ HTML;
return $oFooter;
}
protected function output_dict_entries($bReturnOutput = false)
{
if ((count($this->a_dict_entries) > 0) || (count($this->a_dict_entries_prefixes) > 0)) {
if (class_exists('Dict')) {
// The dictionary may not be available for example during the setup...
// Create a specific dictionary file and load it as a JS script
$this->add_early_script($this->get_dict_file_content());
}
}
}
/**
* @inheritDoc