Commit Graph

47 Commits

Author SHA1 Message Date
Madhura Jayaratne
49e2a98158 Fix #14241 Dropping indexes and foreign keys fail
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2018-04-29 23:54:28 +10:00
Michal Čihař
f4026f60a4 Merge branch 'QA_4_7' 2018-03-01 16:02:57 +01:00
Michal Čihař
984c6a0054 Honor arg_separator in AJAX requests
Fixes #13940

Signed-off-by: Michal Čihař <michal@cihar.com>
2018-03-01 15:50:41 +01:00
xypXiong
c0d10e98b5 fix #13712 Doesn't default to primary key when creating relations (#13910)
We need to compare the escaped value here.

Fixes #13712 

Signed-off-by: yanping <xyp.xiong@gmail.com>
2018-01-08 15:44:43 +01:00
Maurício Meneghini Fauth
3a00dd69a5 Change ESLint's one-var to error
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-25 22:46:20 -03:00
Maurício Meneghini Fauth
ef99fef8d6 Change ESLint's eqeqeq to error
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-25 21:30:14 -03:00
Maurício Meneghini Fauth
00e1ca9b66 Automatic fixes by ESLint
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-09-25 14:22:35 -03:00
Jakub Stanecki
df03897dbb Clean text inputs values in current constraints row
Signed-off-by: Jakub Stanecki <staneckijakub@gmail.com>
2017-09-11 21:29:50 +02:00
Manish Bisht
9c105d43d9 made table relation page responsive
Signed-off-by: Manish Bisht <manish.bisht490@gmail.com>
2017-07-10 22:27:20 +05:30
Michal Čihař
f7bb752573 Automatically add token to all AJAX requests
This way we don't have to do the same in every AJAX request, it can be
done just once in shared handler.

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-06-13 11:45:40 +02:00
Michal Čihař
889ccb6555 Better defaults when creating multi fields foreign key
It does not make sense to set all fields to one key.

Fixes #12980

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-02-14 11:09:57 +01:00
Patric Gustafsson
1bd5fe709d Merge remote-tracking branch 'upstream/master' 2016-11-15 18:08:24 +02:00
Deven Bansod
a41776d6a1 Some more Token mismatch errors in tbl_ scripts, Issue #12523
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2016-09-02 14:13:26 +05:30
Patric Gustafsson
d9be52ec8d Remove odd CSS class logic form template and JS
Odd CSS class is no longer needed, background coloring is
now done with CSS pseudo-class.

Signed-off-by: Patric Gustafsson <patricjgustafsson@outlook.com>
2016-08-29 17:57:54 +03:00
Michal Čihař
987cce0bcf Properly escape foreign key selection
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-07-13 11:10:44 +02:00
Madhura Jayaratne
ce4f240046 POST request for dropping foreign key relations
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-08-28 15:39:06 +10:00
Madhura Jayaratne
5d61cde487 Fix variable scope
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-07-02 20:49:40 +05:30
Madhura Jayaratne
f4b12e5cbd Align
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-05-29 10:52:35 +05:30
Madhura Jayaratne
d5371be455 bug #4920 relation view doesn't list fields of table in other database
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-05-29 10:49:11 +05:30
Hugues Peccatte
8035d00773 Implement #1579 Default to primary key when adding relation.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-12-15 20:54:00 +01:00
Atul Pratap Singh
c70e109bd6 Feature#1546 Replace js sprintf library with a better one
Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>
2014-10-03 17:08:25 +05:30
Atul Pratap Singh
6c83a2f2e3 Merge commit 'a020eac11a26977295cf2439ddd2e5b4af2c88fe'
Conflicts:
	js/config.js
	js/db_search.js
	js/functions.js
	js/makegrid.js
	js/server_privileges.js
	js/tbl_structure.js
2014-10-01 20:42:21 +05:30
Atul Pratap Singh
a020eac11a Add js checks in multiple files if data is undefined
Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>
2014-10-01 10:00:54 +05:30
Ashutosh Dhundhara
f3ac5d1c35 Fix message.
Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>
2014-08-13 20:19:11 +05:30
Ashutosh Dhundhara
1ed073f178 Drop foreign key anchor in Relation view.
Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>
2014-08-13 15:59:00 +05:30
Ashutosh Dhundhara
508f0a752b RFE#919: Multiple-column foreign key relation.
Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>

Fix missing master column.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>

Fix failing test.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>

Fix coding styles.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>

Fix function doc.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>

Fix coding styles.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>
2014-08-01 19:50:12 +05:30
Michal Čihař
51bb5ffc31 Coding style: Declare before used and add function comments 2013-10-02 12:07:14 +02:00
Michal Čihař
4f5a9e40a2 Coding style: line breaking before + 2013-10-02 11:45:46 +02:00
Michal Čihař
424e2ee75b Coding style: use type safe comparing for blank values 2013-10-02 11:45:46 +02:00
Madhura Jayaratne
933a68f1ef Send server only if its available 2013-09-29 22:49:57 +05:30
Madhura Jayaratne
7fc78b123a Add missing semicolon 2013-09-29 22:41:41 +05:30
Madhura Jayaratne
1ee543d01c Send server as well 2013-09-29 21:57:23 +05:30
Michal Čihař
5263a05169 Correct spacing of functions 2013-07-30 14:36:43 +02:00
Kasun Chathuranga
2570db554c Improve comments on the behavior of new relation view interface 2013-06-19 09:55:40 +05:30
Kasun Chathuranga
1e0e37c14a Improved relation view interface 2013-06-19 09:38:35 +05:30
Michal Čihař
a1b6f206b2 Various spacing and identation fixes 2013-04-15 15:13:14 +02:00
Michal Čihař
e6517db98a More javascript cleanup, more fixes of === / !=== 2013-04-15 13:25:50 +02:00
Manuj Jain
42532fd540 Contest 5: Naming foreign key constraints 2013-02-27 09:58:19 +05:30
Rouslan Placella
3ca7d34240 Destroy registered jQuery events on page tear down 2012-10-30 20:07:01 +00:00
Rouslan Placella
5838a44339 Use AJAX.registerOnload() instead of $(document).ready() 2012-10-30 20:07:01 +00:00
Jo Michael
13644d8591 Short-hand notation for jQuery document.ready event 2012-04-21 02:44:18 +02:00
Rouslan Placella
ce30119534 Prefixed a jQuery variable with a dollar 2012-04-10 21:50:34 +01:00
Rouslan Placella
9c16704968 Speed-up selectors 2012-04-10 21:50:34 +01:00
Michal Čihař
1ec0b69e6b Coding style, function definitions 2011-08-05 14:49:23 +02:00
Michal Čihař
d17fba309c Fix permissions.
Most files were made executable somewhere in ninadsp tree, reverting
this.
2010-08-30 09:53:37 +02:00
ninadsp
bed1948d04 testing git setup - no major change made in code yet
only added a few comments
2010-05-23 01:22:01 +05:30
Marc Delisle
5a75ca180a rfe #2988633 Improve ON DELETE/ON UPDATE drop-downs 2010-04-17 19:22:12 -04:00