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
|
||||
|
||||
* **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.1** : fixed Github issue #20
|
||||
* **v 0.6.0** : NOW WITH CUSTOM FIELDS SUPPORT ! (Github #19)
|
||||
|
||||
@ -118,7 +118,11 @@ function initEditFields()
|
||||
|
||||
if(info.field_format == "date")
|
||||
{
|
||||
$('body').find('#dynamic_issue_custom_field_values_' + info.id).datepickerFallback(datepickerOptions);
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -261,7 +265,11 @@ function issueDynamicUpdate(field_name, field_value, type, cssClass){
|
||||
}, 500);
|
||||
|
||||
//set datepicker fallback for input type date
|
||||
$('body').find('input[type=date]').datepickerFallback(datepickerOptions);
|
||||
if( $('body').find('input[type=date]').length
|
||||
&& $('body').find('input[type=date]').datepickerFallback instanceof Function)
|
||||
{
|
||||
$('body').find('input[type=date]').datepickerFallback(datepickerOptions);
|
||||
}
|
||||
|
||||
},
|
||||
error: function(xhr, msg, error) {
|
||||
@ -455,12 +463,7 @@ function initEditFieldListeners()
|
||||
{
|
||||
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;
|
||||
});
|
||||
|
||||
2
init.rb
2
init.rb
@ -6,7 +6,7 @@ Redmine::Plugin.register :redmine_issue_dynamic_edit do
|
||||
name 'Redmine Dynamic edit Issue plugin'
|
||||
author 'Hugo Zilliox'
|
||||
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'
|
||||
author_url 'https://hzilliox.fr'
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user