atlas-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kbh...@apache.org
Subject incubator-atlas git commit: ATLAS-1628 Restrict user from entering text in datepicker input
Date Fri, 03 Mar 2017 14:23:30 GMT
Repository: incubator-atlas
Updated Branches:
  refs/heads/master a4b16bbab -> b99151fb8


ATLAS-1628 Restrict user from entering text in datepicker input


Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/b99151fb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/b99151fb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/b99151fb

Branch: refs/heads/master
Commit: b99151fb83d39ff3bfbad503acae65ac7dd6dbec
Parents: a4b16bb
Author: kevalbhatt <kbhatt@apache.org>
Authored: Fri Mar 3 19:25:26 2017 +0530
Committer: kevalbhatt <kbhatt@apache.org>
Committed: Fri Mar 3 19:25:26 2017 +0530

----------------------------------------------------------------------
 .../public/js/views/entity/CreateEntityLayoutView.js      | 10 ++++++++--
 release-log.txt                                           |  1 +
 2 files changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/b99151fb/dashboardv2/public/js/views/entity/CreateEntityLayoutView.js
----------------------------------------------------------------------
diff --git a/dashboardv2/public/js/views/entity/CreateEntityLayoutView.js b/dashboardv2/public/js/views/entity/CreateEntityLayoutView.js
index 0206491..057d11a 100644
--- a/dashboardv2/public/js/views/entity/CreateEntityLayoutView.js
+++ b/dashboardv2/public/js/views/entity/CreateEntityLayoutView.js
@@ -406,8 +406,14 @@ define(['require',
                     removeText(e, e.currentTarget.value);
                 });
 
-                this.$('input[data-type="date"]').on('dp.hide', function() {
-                    this.blur();
+                this.$('input[data-type="date"]').on('dp.hide keydown', function(event) {
+                    if (event.type) {
+                        if (event.type == 'dp') {
+                            this.blur();
+                        } else if (event.type == 'keydown') {
+                            return false;
+                        }
+                    }
                 });
             },
             getContainer: function(value) {

http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/b99151fb/release-log.txt
----------------------------------------------------------------------
diff --git a/release-log.txt b/release-log.txt
index 921543c..a4c04ca 100644
--- a/release-log.txt
+++ b/release-log.txt
@@ -9,6 +9,7 @@ ATLAS-1060 Add composite indexes for exact match performance improvements
for al
 ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai)
 
 ALL CHANGES:
+ATLAS-1628 Restrict user from entering text in datepicker input (kevalbhatt)
 ATLAS-1538 Make AtlasLdapAuthenticationProvider like Ranger for OpenLdap type (nixonrodrigues
via kevalbhatt)
 ATLAS-1605 Edit Entity in UI : Update button is not enabled when updating attribute of type
date (Kalyanikashikar via kevalbhatt)
 ATLAS-1595:Create Entity in UI : All attributes are not listed for hdfs_path. (Kalyanikashikar
via kevalbhatt)


Mime
View raw message