Return-Path: X-Original-To: apmail-tapestry-commits-archive@minotaur.apache.org Delivered-To: apmail-tapestry-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3090917248 for ; Wed, 26 Aug 2015 06:30:46 +0000 (UTC) Received: (qmail 81359 invoked by uid 500); 26 Aug 2015 06:30:46 -0000 Delivered-To: apmail-tapestry-commits-archive@tapestry.apache.org Received: (qmail 81329 invoked by uid 500); 26 Aug 2015 06:30:45 -0000 Mailing-List: contact commits-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tapestry.apache.org Delivered-To: mailing list commits@tapestry.apache.org Received: (qmail 81320 invoked by uid 99); 26 Aug 2015 06:30:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Aug 2015 06:30:45 +0000 Date: Wed, 26 Aug 2015 06:30:45 +0000 (UTC) From: "Svein (JIRA)" To: commits@tapestry.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (TAP5-2492) No change event when datePicker updates t:datefield MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Svein created TAP5-2492: --------------------------- Summary: No change event when datePicker updates t:datefield Key: TAP5-2492 URL: https://issues.apache.org/jira/browse/TAP5-2492 Project: Tapestry 5 Issue Type: Bug Components: tapestry-core Affects Versions: 5.4 Reporter: Svein When fields in my side panel are updated, I call submit on the change event. If datePicker is used no change event are fired. One line added by me: _this.field.$.change(); Controller.prototype.onSelect = function() { var date; date = this.datePicker.getDate(); if (date === null) { this.hidePopup(); this.clearFieldError(); this.field.value(""); return; } this.field.addClass("ajax-wait"); return ajax(this.container.attr("data-format-url"), { data: { input: date.getTime() }, failure: (function(_this) { return function(response, message) { _this.field.removeClass("ajax-wait"); return _this.fieldError(message); }; })(this), success: (function(_this) { return function(response) { _this.field.removeClass("ajax-wait"); _this.clearFieldError(); _this.field.value(response.json.result); //trigger change event on field _this.field.$.change(); return _this.hidePopup(); }; })(this) }); }; -- This message was sent by Atlassian JIRA (v6.3.4#6332)