This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via da079266ffde3a1b40f1bc4d75070e22e906b485 (commit)
from 2582173115ce40bde99fbe838ce33a41a025c6ad (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=da079266ffde3a1b40f1bc4d75070e22e906b485
commit da079266ffde3a1b40f1bc4d75070e22e906b485
Author: Franck Villaume <[email protected]>
Date: Wed Apr 26 19:23:50 2017 +0200
IE support: replace .on("change", by .change(
diff --git a/src/common/tracker/include/ArtifactTypeHtml.class.php
b/src/common/tracker/include/ArtifactTypeHtml.class.php
index 5c96a2a..af4a0d7 100644
--- a/src/common/tracker/include/ArtifactTypeHtml.class.php
+++ b/src/common/tracker/include/ArtifactTypeHtml.class.php
@@ -1369,29 +1369,29 @@ class ArtifactTypeHtml extends ArtifactType {
$effortUnitSet = New EffortUnitSet($this,
$this->getEffortUnitSet());
if ($effortUnitSet->isAutoconvert()) {
$jseffort = <<<'EOS'
- $("select.effort").on('change', function(){
+ $("select.effort").change(function(){
var effortid = $(this).data("effortid");
var value =
parseInt(parseInt($("input[name='extra_fields["+effortid+"]']").val())/$("select[name='unit["+effortid+"]']
option:selected").data('factor'));
$("input[name='value["+effortid+"]']").val(value);
$("input[name='extra_fields["+effortid+"]']").val(value*$("select[name='unit["+effortid+"]']
option:selected").data('factor')+'U'+$("select[name='unit["+effortid+"]']").val());
});
- $("input.effort").on('change', function(){
+ $("input.effort").change(function(){
var effortid = $(this).data("effortid");
var value = $("input[name='value["+effortid+"]']").val();
$("input[name='extra_fields["+effortid+"]']").val(value*$("select[name='unit["+effortid+"]']
option:selected").data('factor')+'U'+$("select[name='unit["+effortid+"]']").val());
});
- $(".effort-range").on('change', function(){
+ $(".effort-range").change(function(){
var effortid = $(this).data("effortid");
$("input[name='extra_fields["+effortid+"]']").val($("input[name='value_from["+effortid+"]']").val()*$("select[name='unit_from["+effortid+"]']
option:selected").data('factor')+'U'+$("select[name='unit_from["+effortid+"]']").val()+'
'+$("input[name='value_to["+effortid+"]']").val()*$("select[name='unit_to["+effortid+"]']
option:selected").data('factor')+'U'+$("select[name='unit_to["+effortid+"]']").val());
});
EOS;
} else {
$jseffort = <<<'EOS'
- $(".effort").on('change', function(){
+ $(".effort").change(function(){
var effortid = $(this).data("effortid");
$("input[name='extra_fields["+effortid+"]']").val($("input[name='value["+effortid+"]']").val()*$("select[name='unit["+effortid+"]']
option:selected").data('factor')+'U'+$("select[name='unit["+effortid+"]']").val());
});
- $(".effort-range").on('change', function(){
+ $(".effort-range").change(function(){
var effortid = $(this).data("effortid");
$("input[name='extra_fields["+effortid+"]']").val($("input[name='value_from["+effortid+"]']").val()*$("select[name='unit_from["+effortid+"]']
option:selected").data('factor')+'U'+$("select[name='unit_from["+effortid+"]']").val()+'
'+$("input[name='value_to["+effortid+"]']").val()*$("select[name='unit_to["+effortid+"]']
option:selected").data('factor')+'U'+$("select[name='unit_to["+effortid+"]']").val());
});
@@ -1412,7 +1412,7 @@ EOS;
}).on('keydown', function(event){
if(event.keyCode !== 9) return false;
});
- $(".in-formula").on('change', function(){
+ $(".in-formula").change(function(){
$.ajax({
type: 'POST',
url: 'index.php',
@@ -1471,7 +1471,7 @@ EOS;
}
});
});
- $(".autoassign[name^='extra_fields']").on('change', function(){
+ $(".autoassign[name^='extra_fields']").change(function(){
if ($(this).prop('tagName') == 'SELECT') {
var elmnts = $(this).children('option:selected');
} else {
@@ -1483,7 +1483,7 @@ EOS;
$("span#tracker-assigned_to").text(aat.name);
});
});
- $(".with-depcy[name^='extra_fields']").on('change', function(){
+ $(".with-depcy[name^='extra_fields']").change(function(){
if ($(this).prop('tagName') == 'SELECT') {
var elmnts = $(this).children('option:selected');
} else {
-----------------------------------------------------------------------
Summary of changes:
src/common/tracker/include/ArtifactTypeHtml.class.php | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits