fixed Github issue #22 : DatepickerFallback raised an error
This commit is contained in:
parent
bb0ecb0056
commit
9b22ff1a3b
@ -25,6 +25,7 @@ This plugin uses [FontAwesome icons](http://fontawesome.io/)
|
|||||||
|
|
||||||
### Changelog
|
### Changelog
|
||||||
|
|
||||||
|
* **v 0.6.3** : fixed Github issue #22 : DatepickerFallback raised an error
|
||||||
* **v 0.6.2** : fixed Github issue #22 : long description is now supported (no more 414 errors)
|
* **v 0.6.2** : fixed Github issue #22 : long description is now supported (no more 414 errors)
|
||||||
* **v 0.6.1** : fixed Github issue #20
|
* **v 0.6.1** : fixed Github issue #20
|
||||||
* **v 0.6.0** : NOW WITH CUSTOM FIELDS SUPPORT ! (Github #19)
|
* **v 0.6.0** : NOW WITH CUSTOM FIELDS SUPPORT ! (Github #19)
|
||||||
|
|||||||
@ -117,6 +117,9 @@ function initEditFields()
|
|||||||
editHTML);
|
editHTML);
|
||||||
|
|
||||||
if(info.field_format == "date")
|
if(info.field_format == "date")
|
||||||
|
{
|
||||||
|
if( $('body').find('#dynamic_issue_custom_field_values_' + info.id).length
|
||||||
|
&& $('body').find('#dynamic_issue_custom_field_values_' + info.id).datepickerFallback instanceof Function)
|
||||||
{
|
{
|
||||||
$('body').find('#dynamic_issue_custom_field_values_' + info.id).datepickerFallback(datepickerOptions);
|
$('body').find('#dynamic_issue_custom_field_values_' + info.id).datepickerFallback(datepickerOptions);
|
||||||
}
|
}
|
||||||
@ -124,6 +127,7 @@ function initEditFields()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
initEditFields();
|
initEditFields();
|
||||||
|
|
||||||
@ -261,7 +265,11 @@ function issueDynamicUpdate(field_name, field_value, type, cssClass){
|
|||||||
}, 500);
|
}, 500);
|
||||||
|
|
||||||
//set datepicker fallback for input type date
|
//set datepicker fallback for input type date
|
||||||
|
if( $('body').find('input[type=date]').length
|
||||||
|
&& $('body').find('input[type=date]').datepickerFallback instanceof Function)
|
||||||
|
{
|
||||||
$('body').find('input[type=date]').datepickerFallback(datepickerOptions);
|
$('body').find('input[type=date]').datepickerFallback(datepickerOptions);
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
error: function(xhr, msg, error) {
|
error: function(xhr, msg, error) {
|
||||||
@ -455,11 +463,6 @@ function initEditFieldListeners()
|
|||||||
{
|
{
|
||||||
var new_value = domInputField.val();
|
var new_value = domInputField.val();
|
||||||
|
|
||||||
if(typeof(CKEDITOR) === "object"
|
|
||||||
&& typeof(CKEDITOR.instances['dynamic_issue_custom_field_values_' + info.id].getData) === typeof(Function)){
|
|
||||||
new_value = CKEDITOR.instances['dynamic_issue_custom_field_values_' + info.id].getData();
|
|
||||||
}
|
|
||||||
|
|
||||||
issueDynamicUpdate('custom_field_values_' + info.id , new_value, inputType, 'cf_' + info.id);
|
issueDynamicUpdate('custom_field_values_' + info.id , new_value, inputType, 'cf_' + info.id);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
2
init.rb
2
init.rb
@ -6,7 +6,7 @@ Redmine::Plugin.register :redmine_issue_dynamic_edit do
|
|||||||
name 'Redmine Dynamic edit Issue plugin'
|
name 'Redmine Dynamic edit Issue plugin'
|
||||||
author 'Hugo Zilliox'
|
author 'Hugo Zilliox'
|
||||||
description 'Allows users to dynamically update issue attributes in detailed view without refreshing the page (JIRA style)'
|
description 'Allows users to dynamically update issue attributes in detailed view without refreshing the page (JIRA style)'
|
||||||
version '0.6.2'
|
version '0.6.3'
|
||||||
url 'https://github.com/ilogeek/redmine_issue_dynamic_edit'
|
url 'https://github.com/ilogeek/redmine_issue_dynamic_edit'
|
||||||
author_url 'https://hzilliox.fr'
|
author_url 'https://hzilliox.fr'
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user