Commit 279c61f3 authored by Fatih Acet's avatar Fatih Acet

Merge branch 'cs-remove-inline-js' into 'master'

Remove two simple instances of inline JavaScript.

Not very complicated, they're moved to the dispatcher.

See merge request !5513
parents ad8390bc 8f3e3f6b
...@@ -186,6 +186,12 @@ ...@@ -186,6 +186,12 @@
break; break;
case 'projects': case 'projects':
new NamespaceSelects(); new NamespaceSelects();
break;
case 'labels':
switch (path[2]) {
case 'edit':
new Labels();
}
} }
break; break;
case 'dashboard': case 'dashboard':
...@@ -211,6 +217,7 @@ ...@@ -211,6 +217,7 @@
new ProjectNew(); new ProjectNew();
break; break;
case 'show': case 'show':
new Star();
new ProjectNew(); new ProjectNew();
new ProjectShow(); new ProjectShow();
new NotificationsDropdown(); new NotificationsDropdown();
......
...@@ -28,6 +28,3 @@ ...@@ -28,6 +28,3 @@
.form-actions .form-actions
= f.submit 'Save', class: 'btn btn-save js-save-button' = f.submit 'Save', class: 'btn btn-save js-save-button'
= link_to "Cancel", admin_labels_path, class: 'btn btn-cancel' = link_to "Cancel", admin_labels_path, class: 'btn btn-cancel'
:javascript
new Labels();
...@@ -24,6 +24,3 @@ ...@@ -24,6 +24,3 @@
.project-clone-holder .project-clone-holder
= render "shared/clone_panel" = render "shared/clone_panel"
:javascript
new Star();
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment