You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2013/06/27 16:51:47 UTC
[1/2] git commit: [#6293] Replace != with !==
Updated Branches:
refs/heads/master 57067cf3e -> 9b9399f4c
[#6293] Replace != with !==
Signed-off-by: Tim Van Steenburgh <tv...@gmail.com>
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/9b9399f4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/9b9399f4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/9b9399f4
Branch: refs/heads/master
Commit: 9b9399f4c057929886cee72b39e24255207d85e1
Parents: 7aad53f
Author: Tim Van Steenburgh <tv...@gmail.com>
Authored: Thu Jun 27 14:50:50 2013 +0000
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Thu Jun 27 14:51:17 2013 +0000
----------------------------------------------------------------------
ForgeTracker/forgetracker/widgets/ticket_form.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/9b9399f4/ForgeTracker/forgetracker/widgets/ticket_form.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/widgets/ticket_form.py b/ForgeTracker/forgetracker/widgets/ticket_form.py
index 3763ea1..9139cda 100644
--- a/ForgeTracker/forgetracker/widgets/ticket_form.py
+++ b/ForgeTracker/forgetracker/widgets/ticket_form.py
@@ -144,8 +144,8 @@ class TicketForm(GenericTicketForm):
$('form').submit(function() {
var value = $('div.tagsinput div input').val();
var exists = $('input.label_edit').tagExist(value);
- var default_value =$('div.tagsinput div input').attr('data-default');
- if ((value != default_value) && (!exists) && value != ''){
+ var default_value = $('div.tagsinput div input').attr('data-default');
+ if ((value !== default_value) && (!exists) && value !== ''){
$('input.label_edit').addTag(value);
}
$('input[type=submit]', this).attr('disabled', 'disabled');
[2/2] git commit: [#6293] ticket:371 add tag when saving the ticket
Posted by tv...@apache.org.
[#6293] ticket:371 add tag when saving the ticket
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/7aad53fa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/7aad53fa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/7aad53fa
Branch: refs/heads/master
Commit: 7aad53fa16ed2140ed03f03b758a42a4dbfba12f
Parents: 57067cf
Author: Yuriy Arhipov <yu...@yandex.ru>
Authored: Wed Jun 19 10:29:43 2013 +0400
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Thu Jun 27 14:51:17 2013 +0000
----------------------------------------------------------------------
ForgeTracker/forgetracker/widgets/ticket_form.py | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/7aad53fa/ForgeTracker/forgetracker/widgets/ticket_form.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/widgets/ticket_form.py b/ForgeTracker/forgetracker/widgets/ticket_form.py
index 3a00389..3763ea1 100644
--- a/ForgeTracker/forgetracker/widgets/ticket_form.py
+++ b/ForgeTracker/forgetracker/widgets/ticket_form.py
@@ -142,6 +142,12 @@ class TicketForm(GenericTicketForm):
$('#show_attach').hide();
});
$('form').submit(function() {
+ var value = $('div.tagsinput div input').val();
+ var exists = $('input.label_edit').tagExist(value);
+ var default_value =$('div.tagsinput div input').attr('data-default');
+ if ((value != default_value) && (!exists) && value != ''){
+ $('input.label_edit').addTag(value);
+ }
$('input[type=submit]', this).attr('disabled', 'disabled');
});
$('div.reply.discussion-post a.markdown_preview').click(function(){