Commit d5576c88 authored by tim.plunkett's avatar tim.plunkett

Issue #1790636 by tim.plunkett: Remove miscellaneous CTools code.

parent b54f02f5
......@@ -30,12 +30,3 @@
/* @end */
/* @group Export */
/* Override for filter button on the views list screen */
#ctools-export-ui-list-form .form-submit {
margin-left: 0;
margin-right: auto;
}
/* @end */
......@@ -119,28 +119,3 @@
/* @end */
/* @group Export */
/* Override for filter button on the views list screen */
#ctools-export-ui-list-form .form-submit {
margin-top: 0 !important;
margin-right: 0;
}
.ctools-export-ui-row + .ctools-export-ui-row {
margin-top: 1em;
}
.ctools-export-ui-fourth-row input {
margin-top: 5px !important;
}
/* @end */
/* @group Jump list */
#views-live-preview .ctools-jump-menu-select{
max-width: 450px;
}
/* @end */
......@@ -72,16 +72,6 @@ fieldset.fieldset-no-legend {
margin-right: 1em;
}
/* Override for filter button on the views list screen */
#ctools-export-ui-list-form .form-submit {
margin-bottom: 0;
}
#ctools-export-ui-list-form .ctools-export-ui-first-row .form-item {
margin-top: 3px;
margin-right: 5px; /* LTR */
}
.form-item,
.form-item .form-item {
margin-bottom: 0;
......
......@@ -1117,7 +1117,6 @@ function views_ui_preview_form($form, &$form_state, $view, $display_id = 'defaul
'#title' => t('Preview with contextual filters:'),
'#description' => t('Separate contextual filter values with a "/". For example, %example.', array('%example' => '40/12/10')),
'#id' => 'preview-args',
// '#attributes' => array('class' => array('ctools-auto-submit')),
);
// Add the preview button
......
/**
* @file
* Javascript related to the main view list.
*/
(function ($, Drupal) {
"use strict";
Drupal.behaviors.viewsUIList = {
attach: function () {
var $itemsTable = $('#ctools-export-ui-list-items thead').once('views-ajax-processed');
var $itemsForm = $('#ctools-export-ui-list-form');
if ($itemsTable.length) {
$itemsTable.on('click', 'a', function (e) {
e.preventDefault();
var query = $.deparam.querystring(this.href);
$itemsForm.find('select[name=order]').val(query.order);
$itemsForm.find('select[name=sort]').val(query.sort);
$itemsForm.find('input.ctools-auto-submit-click').trigger('click');
});
}
},
detach: function (context, settings, trigger) {
if (trigger === 'unload') {
var $itemsTable = $('#ctools-export-ui-list-items thead').removeOnce('views-ajax-processed');
if ($itemsTable.length) {
$itemsTable.off('click');
}
}
}
};
})(jQuery, Drupal);
......@@ -27,33 +27,6 @@ public static function getInfo() {
);
}
/**
* Tests the settings for the views listing page.
*
* @todo Decide if this functionality should be implemented.
function testViewsListing() {
$this->drupalLogin($this->adminUser);
// Configure to hide listing filters.
$edit = array(
'ui_show_listing_filters' => FALSE,
);
$this->drupalPost('admin/structure/views/settings', $edit, t('Save configuration'));
$this->drupalGet('admin/structure/views');
$this->assertFieldByXPath("//div[contains(@class, 'ctools-export-ui-row')][contains(@class, 'element-invisible')]");
// Configure to show listing filters.
$edit = array(
'ui_show_listing_filters' => TRUE,
);
$this->drupalPost('admin/structure/views/settings', $edit, t('Save configuration'));
$this->drupalGet('admin/structure/views');
$this->assertNoFieldByXPath("//div[contains(@class, 'ctools-export-ui-row')][contains(@class, 'element-invisible')]");
}
*/
/**
* Tests the settings for the edit ui.
*/
......
......@@ -2394,13 +2394,6 @@ function views_array_key_plus($array) {
return $array;
}
/**
* Report to CTools that we use hook_views_api instead of hook_ctools_plugin_api()
*/
function views_ctools_plugin_api_hook_name() {
return 'views_api';
}
// Declare API compatibility on behalf of core modules:
/**
......
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