Skip to content
Snippets Groups Projects
Unverified Commit a99e5cd8 authored by Connor Shea's avatar Connor Shea
Browse files

Split Cropper.js from the main JavaScript manifest.

parent 1ade080e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -54,7 +54,6 @@
#= require_directory ./u2f
#= require_directory .
#= require fuzzaldrin-plus
#= require cropper
#= require u2f
 
window.slugify = (text) ->
Loading
Loading
Loading
Loading
@@ -129,7 +129,6 @@ class Dispatcher
when 'dashboard', 'root'
shortcut_handler = new ShortcutsDashboardNavigation()
when 'profiles'
new Profile()
new NotificationsForm()
new NotificationsDropdown()
when 'projects'
Loading
Loading
#= require cropper
#
#= require_tree .
Loading
Loading
@@ -78,3 +78,6 @@ $ ->
 
if comment && comment.length > 1 && $title.val() == ''
$title.val(comment[1]).change()
if $('body').attr('data-page').split(':').first() == 'profiles'
new Profile()
- content_for :page_specific_javascripts do
= page_specific_javascript_tag('lib/cropper.js')
= page_specific_javascript_tag('profile/application.js')
= form_for @user, url: profile_path, method: :put, html: { multipart: true, class: "edit-user prepend-top-default" }, authenticity_token: true do |f|
= form_errors(@user)
 
Loading
Loading
Loading
Loading
@@ -84,6 +84,7 @@ module Gitlab
config.assets.precompile << "graphs/application.js"
config.assets.precompile << "users/application.js"
config.assets.precompile << "network/application.js"
config.assets.precompile << "profile/application.js"
config.assets.precompile << "lib/utils/*.js"
config.assets.precompile << "lib/*.js"
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment