Remove old ajax submit compatibillty code#2276
Conversation
WalkthroughThe pull request simplifies the AJAX submission functionality by removing the Pro-version dependency in multiple components. The controller now solely checks if a form is AJAX-enabled and appends the corresponding CSS class when applicable. In parallel, the settings view renders the AJAX submission checkbox unconditionally. Additionally, the helper method responsible for checking Pro version requirements has been deprecated and now returns a static false. Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant C as FrmFormsController::form_classes
participant F as FrmForm
participant UI as Output Renderer
U->>C: Request form classes for form
C->>F: is_ajax_on(form)
F-->>C: returns (true/false)
alt AJAX is enabled
C->>UI: Append 'frm_ajax_submit' class
else
C->>UI: Render form without extra class
end
sequenceDiagram
participant U as User
participant V as Settings UI (frm-forms/settings-advanced)
U->>V: Load settings page
V->>UI: Render AJAX submission checkbox unconditionally
Possibly related PRs
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🧰 Additional context used🧬 Code Definitions (1)classes/views/frm-forms/settings-advanced.php (1)
⏰ Context from checks skipped due to timeout of 90000ms (6)
🔇 Additional comments (3)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
We don't need the old checks anymore. v6.2 is old enough, going back to Apr 6, 2023.