Title: Please Fix admin.js
Last modified: August 30, 2016

---

# Please Fix admin.js

 *  [dsthedev](https://wordpress.org/support/users/dsthedev/)
 * (@dsthedev)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/please-fix-adminjs/)
 * In admin.js you have a script to “fix” thickbox. It looks like you aren’t checking
   to make sure tb_position is actually a function. This causes the script to break
   on certain pages like the acf custom fields edit group screen.
 * Replace line 5 with:
 *     ```
       if(typeof(tb_position) == "function"){
            var tb_position_old = tb_position;
       }
       ```
   
 * Or something similar, I used the above to fix it myself.
 * Thanks!
 * [https://wordpress.org/plugins/per-page-widgets/](https://wordpress.org/plugins/per-page-widgets/)

 The topic ‘Please Fix admin.js’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/per-page-widgets_e7ece5.svg)
 * [Per Page Widgets](https://wordpress.org/plugins/per-page-widgets/)
 * [Support Threads](https://wordpress.org/support/plugin/per-page-widgets/)
 * [Active Topics](https://wordpress.org/support/plugin/per-page-widgets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/per-page-widgets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/per-page-widgets/reviews/)

## Tags

 * [ACF](https://wordpress.org/support/topic-tag/acf/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 0 replies
 * 1 participant
 * Last reply from: [dsthedev](https://wordpress.org/support/users/dsthedev/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/please-fix-adminjs/)
 * Status: not resolved