Use adminpage instead of pagenow.

This is a fix for the quick-edit js changes which break custom post support. The `pagenow` js variable is post-type dependent, but `adminpage` is not.