Overview
Comment:Fix issue with date picker when clicking on non-dates (thanks @zou)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: 974c4b227bd4b84cb6b952245ad97e3d700719c3
User & Date: bohwaz on 2020-11-11 22:59:47
Other Links: branch diff | manifest | tags
Context
2020-11-11
23:55
Implement search copy [828073415a] check-in: 0f30454117 user: bohwaz tags: dev
22:59
Fix issue with date picker when clicking on non-dates (thanks @zou) check-in: 974c4b227b user: bohwaz tags: dev
22:57
Update Query builder, fix some issues with IN operator check-in: ac00cd8b04 user: bohwaz tags: dev
Changes

Modified src/www/admin/static/scripts/datepicker2.js from [73897b9f71] to [180ac8cc87].

165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
			}

			this.focus();
		}

		select(e)
		{
			if (e) {
				this.date.setDate(parseInt(e.target.innerHTML, 10));
			}

			var y = this.date.getFullYear(),
				m = ('0' + (this.date.getMonth() + 1)).substr(-2),
				d = ('0' + this.date.getDate()).substr(-2);

			this.input.value = this.format == 1 ? d + '/' + m + '/' + y : y + '-' + m + '-' + d;







|
|







165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
			}

			this.focus();
		}

		select(e)
		{
			if (e && e.target.textContent.match(/\d+/)) {
				this.date.setDate(parseInt(e.target.textContent, 10));
			}

			var y = this.date.getFullYear(),
				m = ('0' + (this.date.getMonth() + 1)).substr(-2),
				d = ('0' + this.date.getDate()).substr(-2);

			this.input.value = this.format == 1 ? d + '/' + m + '/' + y : y + '-' + m + '-' + d;