From a9f8922cfeed6abf23be149bb4a7d6e3a604a8bc Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 18 Sep 2019 20:12:40 +0800 Subject: [PATCH] Update archive_files_controller.rb try --- app/controllers/admin/archive_files_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/archive_files_controller.rb b/app/controllers/admin/archive_files_controller.rb index bd3c8af..41aec4c 100644 --- a/app/controllers/admin/archive_files_controller.rb +++ b/app/controllers/admin/archive_files_controller.rb @@ -51,7 +51,7 @@ class Admin::ArchiveFilesController < OrbitAdminController end def categories_order @categories = @module_app.categories - render :partial => "categories_order" + render :partial => "categories_order" if request.xhr? end def create @archive_file = ArchiveFile.new(archive_vars)