Commit 10af33ad authored by webchick's avatar webchick

Issue #2205157 by jibran, rteijeiro | sun: Convert locale.admin.css into a library.

parent 6ec1493a
......@@ -34,10 +34,6 @@ public function buildForm(array $form, array &$form_state) {
$langname = isset($langcode) ? $languages[$langcode]->name : "- None -";
$path = drupal_get_path('module', 'locale');
$form['#attached']['css'] = array(
$path . '/css/locale.admin.css',
);
$form['#attached']['library'][] = 'locale/drupal.locale.admin';
$form['langcode'] = array(
......
......@@ -26,9 +26,7 @@ public function buildForm(array $form, array &$form_state) {
$filters = $this->translateFilters();
$filter_values = $this->translateFilterValues();
$form['#attached']['css'] = array(
drupal_get_path('module', 'locale') . '/css/locale.admin.css',
);
$form['#attached']['library'][] = 'locale/drupal.locale.admin';
$form['filters'] = array(
'#type' => 'details',
......
......@@ -2,6 +2,9 @@ drupal.locale.admin:
version: VERSION
js:
locale.admin.js: {}
css:
component:
css/locale.admin.css: {}
dependencies:
- core/jquery
- core/drupal
......
......@@ -162,7 +162,6 @@ function locale_translation_status_form($form, &$form_state) {
);
$form['#attached']['library'][] = 'locale/drupal.locale.admin';
$form['#attached']['css'] = array(drupal_get_path('module', 'locale') . '/css/locale.admin.css');
$form['actions'] = array('#type' => 'actions');
if ($languages_update) {
......
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