Commit Graph

134 Commits

Author SHA1 Message Date
Michal Čihař
1fc566fd90 Share code for parsing data-post attribute
It can include leading question mark and we should deal with it in all
locations.

Fixes #13913

Signed-off-by: Michal Čihař <michal@cihar.com>
2018-01-08 17:35:32 +01:00
Michal Čihař
8332861d62 Adjust table drop operation to use POST
Issue #13866

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-12-15 11:52:38 +01:00
Michal Čihař
ff20564ef0 Adjust table truncate operation to use POST
Issue #13866

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-12-15 11:51:18 +01:00
Michal Čihař
2bb01ef0a7 Share code for row filtering
Make it generic so that it works in most cases and fixes does not have
to be implemented multiple times.

Issue #13517

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-30 11:25:51 +01:00
Michal Čihař
b0421d7d8c Merge branch 'QA_4_7' 2017-10-30 10:28:23 +01:00
Michal Čihař
7a17da0f57 Fixed check all interaction with filtering
- check all select only filtered rows
- the hidden rows are automatically unselected
- the check all state is updated according to filtering

Fixes #13517

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-30 10:26:03 +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
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
Maurício Meneghini Fauth
05e39541c7 Remove inline CSS
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-05-22 23:21:03 -03:00
Dan Ungureanu
1ca19f0ac1 Replaced deprecated jQuery calls.
'bind' and 'unbind', 'delegate' and 'undelegate' have been deprecated in
favor of 'on' and 'off'.

Partially fixes #13166.

Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
2017-04-10 13:06:32 +03:00
Michal Čihař
6a84202981 Use existing filtering template for table filtering
Issue #12838, #12069

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-21 10:22:35 +01:00
Michal Čihař
00b718397c Unbind event on page unload
Issue #12838, #12069

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-21 10:16:57 +01:00
Yunus Çağrı
041cd61820 Tab spaces are removed.
Signed-off-by: Yunus Çağrı <ycagriyurdakul@gmail.com>
2016-12-21 00:15:24 +03:00
Yunus Çağrı
9aaf3126b8 Update db_structure.js 2016-12-20 22:57:19 +02:00
Yunus Çağrı
f256391545 Inline javascript codes are removed. Each is used for table search
Signed-off-by: Yunus Çağrı <ycagriyurdakul@gmail.com>
2016-12-20 23:53:00 +03:00
Yunus Çağrı
b19085b37b Feature: #12069: Filtering tables on table listing of particular database.
Signed-off-by: Yunus Çağrı <ycagriyurdakul@gmail.com>
2016-12-19 23:19:06 +03:00
Yunus Çağrı
ec4ef65f36 Feature: #12069: Filtering tables on table listing of particular database.
Signed-off-by: Yunus Çağrı <ycagriyurdakul@gmail.com>
2016-12-19 22:56:15 +03:00
Michal Čihař
5d4d8b0fa3 Remove javascript code for manipulating with odd/even classes
Fixes #12070

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-07 10:17:15 +01:00
Deven Bansod
917d9581b7 Fix 'Token mismatch' in drop and truncating a table from db_structure
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2016-09-01 12:30:49 +05:30
Madhura Jayaratne
b783d818b5 Use back quotes around table names in confirmation messages
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2016-02-16 19:29:40 +11:00
Marc Delisle
bc295fdb30 Use strict comparison
Signed-off-by: Marc Delisle <marc@infomarc.info>
2016-01-11 08:12:11 -05:00
Marc Delisle
348f4dea37 Fix coding style
Signed-off-by: Marc Delisle <marc@infomarc.info>
2016-01-10 07:43:01 -05:00
Achilles-96
66d7c50bee Fixes #11796
Signed-off-by: Raghuram Vadapalli <raghuram.vadapalli@research.iiit.ac.in>
2016-01-10 14:48:39 +05:30
Hugues Peccatte
c721815dc2 Convert array declaration in JS.
Remove useless code.
Remove useless declarations.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-12-11 22:50:24 +01:00
Deven Bansod
1f4cff8fc6 Fix misspelt word
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2015-11-29 23:05:30 +05:30
Achilles-96
f72864cb2b Fixes issue 11504
Signed-off-by: Achilles-96 <raghuram.vadapalli@research.iiit.ac.in>
2015-11-29 15:44:56 +05:30
Atul Pratap Singh
50a9c19fe4 Rename 'Print view' to 'Print'
Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>
2015-11-18 19:46:28 +05:30
Madhura Jayaratne
b614762100 Update comments
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-08-28 15:39:00 +10:00
Madhura Jayaratne
fc4c1a7a29 Use a POST request for dropping a table
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-08-28 15:38:53 +10:00
Madhura Jayaratne
f824aaa8f6 Use POST request for emptying a table
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-08-28 15:38:52 +10:00
Hugues Peccatte
a190826020 Improve jQuery selectors.
Remove duplicated selectors.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-08-24 21:06:27 +02:00
Nisarg Jhaveri
befe89ad4e Make Scrutinizer Happy
Signed-off-by: Nisarg Jhaveri <nisargjhaveri@gmail.com>
2015-06-30 21:58:21 +05:30
Madhura Jayaratne
f889561c59 Get default_fk_check_value on demand rather than checking the value in every script
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-06-22 08:36:46 +05:30
Nisarg Jhaveri
8f242871dc Foreign key checkbox for empty/drop in table operation
Signed-off-by: Nisarg Jhaveri <nisargjhaveri@gmail.com>
2015-06-13 19:51:28 +05:30
Nisarg Jhaveri
620600f3b9 Foreign key check checkbox for empty/drop in db_structure
Signed-off-by: Nisarg Jhaveri <nisargjhaveri@gmail.com>
2015-06-12 19:40:23 +05:30
Madhura Jayaratne
4e937d9918 Remove support for Shift + Click on function name to apply to all rows in insert/edit page
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-06-04 20:54:13 +05:30
Isaac Bennetch
af658d27ee Merge pull request #1708 from devenbansod/rfe701_using_css
RFE#701 - Print View using CSS - Rewrite
2015-06-01 14:50:04 -04:00
Madhura Jayaratne
38c0177b3a Remove the anchor if total row count is not approximate
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-06-01 09:59:46 +05:30
Deven Bansod
aeae86d7cc RFE#701 - Print View using CSS - Rewrite
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2015-06-01 03:57:50 +05:30
Madhura Jayaratne
2be7403799 Extend disabling foreign key check to row deletion
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-01-30 15:57:11 +05:30
Madhura Jayaratne
d68dcef9ac Better way to handle navigation filter tooltip
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-01-22 17:04:47 +05:30
Madhura Jayaratne
410d1c32df .live() and .die() methods are deprecated. Use .on() and .off() methods instead
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2014-12-02 17:07:46 +05:30
Madhura Jayaratne
3b2f62d3c2 Tracking improvements. Implements rfe #1562
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2014-11-25 17:31:53 +05:30
Hugues Peccatte
037a034b43 Minor coding style modifications.
Fix typos.
PHPDoc and JSDoc updates.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-11-02 14:04:35 +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
Marc Delisle
00bad7150b Merge pull request #1211 from smita786/gsoc_central_columns_list
option to Make table consistent with central list of columns
2014-06-09 12:27:40 -04:00