Commit ad43c47a authored by Prosper De Laure's avatar Prosper De Laure
Browse files

code cleaning

parent 49035f02
......@@ -57,7 +57,6 @@ class datePicker
* weekStart
*/
protected $parameters;
protected static $parameterAdded;
/* -------------------------------------------------------------------------
- Methods
......@@ -115,10 +114,8 @@ class datePicker
public function saveHtml()
{
$datePickerId = \laabs\uniqid();
$this->element->setAttribute('data-datepicker-id', $datePickerId);
$parameters = json_encode($this->parameters);
$scriptText =
<<<EOS
$(document).ready(function() {
......
......@@ -156,7 +156,6 @@
var Metadata = {
addArchiveDescription : function(archiveDescription) {
//console.log(archiveDescription);
var target = $("#archivalProfileFields");
var template = $('#inputFieldTemplate').clone();
var type = archiveDescription.descriptionField.type;
......@@ -209,7 +208,6 @@
case 'timestamp':
field = template.find('input');
field.attr('placeholder', $('#date_text').text());
console.log(DatePickerParams);
field.datepicker(DatePickerParams);
if (defaultVal !== null && defaultVal !== undefined && defaultVal !== "") {
field.data("datepicker").setDate(defaultVal);
......
......@@ -295,7 +295,6 @@
if (response.status) {
ModificationModal.close();
ModificationModal.modal.one('hidden.bs.modal', function () {
console.log("passage");
//$('#modificationModal').modal();*
$('#archive_search').click();
});
......@@ -351,9 +350,8 @@
var retentionRuleCode = $("#retentionRuleCode").find(':selected').data('json');
var retentionRules = "";
var retentionRuleTable = $('#retentionRuleTable');
console.log(retentionRuleCode);
if (retentionRuleCode) {
if (retentionRuleCode) {
var retentionRuleDurationUnit = retentionRuleCode.duration.substr(retentionRuleCode.duration.length - 1, 1);
var retentionRuleDuration = (retentionRuleCode.duration.split(retentionRuleDurationUnit))[0].split("P");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment