summaryrefslogtreecommitdiffstats
path: root/giglogadmin.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-04-05 09:24:22 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-04-05 09:24:22 +0200
commit1c4207622ee0deb83aa759206fe56739b1c19918 (patch)
treedfa8f31c1699b6ed39dc186efab58b5da96e949d /giglogadmin.php
parenta0359acccbecbea6be0e73e0957f2ddc0e2eb941 (diff)
downloadgigologadmin-1c4207622ee0deb83aa759206fe56739b1c19918.tar.gz
gigologadmin-1c4207622ee0deb83aa759206fe56739b1c19918.tar.bz2
gigologadmin-1c4207622ee0deb83aa759206fe56739b1c19918.zip
Make concert table buttons work.
Moved processing of POST requests to it's own method, and added a visual clue that a slot has been selected. Also moved relevant code into the AdminPage class.
Diffstat (limited to 'giglogadmin.php')
-rw-r--r--giglogadmin.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/giglogadmin.php b/giglogadmin.php
index d610fe8..8c040aa 100644
--- a/giglogadmin.php
+++ b/giglogadmin.php
@@ -65,6 +65,8 @@ if ( !class_exists( 'GiglogAdmin_Plugin' ) ) {
'dashicons-tickets-alt', // Icon url
11); // Position, just below 'Media'
+ add_action( 'load-' . $top, array( 'GiglogAdmin_AdminPage', 'update' ) );
+
$import_hook = add_submenu_page(
"giglog", // parent slug
"Import gigs", // page title