Skip to content
Snippets Groups Projects
Commit 4e415c4a authored by Brian Weaver's avatar Brian Weaver
Browse files

Update views_ajax_history to 1.2

parent 61b004ba
No related branches found
No related tags found
No related merge requests found
...@@ -7888,17 +7888,17 @@ ...@@ -7888,17 +7888,17 @@
}, },
{ {
"name": "drupal/views_ajax_history", "name": "drupal/views_ajax_history",
"version": "1.1.0", "version": "1.2.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.drupalcode.org/project/views_ajax_history.git", "url": "https://git.drupalcode.org/project/views_ajax_history.git",
"reference": "8.x-1.1" "reference": "8.x-1.2"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://ftp.drupal.org/files/projects/views_ajax_history-8.x-1.1.zip", "url": "https://ftp.drupal.org/files/projects/views_ajax_history-8.x-1.2.zip",
"reference": "8.x-1.1", "reference": "8.x-1.2",
"shasum": "dd5f5256e139dff1371a109959dde70d593d4d1a" "shasum": "97c19dd21327025a58deec6200e008b3c794b022"
}, },
"require": { "require": {
"drupal/core": "*" "drupal/core": "*"
...@@ -7909,8 +7909,8 @@ ...@@ -7909,8 +7909,8 @@
"dev-1.x": "1.x-dev" "dev-1.x": "1.x-dev"
}, },
"drupal": { "drupal": {
"version": "8.x-1.1", "version": "8.x-1.2",
"datestamp": "1559296088", "datestamp": "1562339886",
"security-coverage": { "security-coverage": {
"status": "covered", "status": "covered",
"message": "Covered by Drupal's security advisory policy" "message": "Covered by Drupal's security advisory policy"
......
...@@ -8139,18 +8139,18 @@ ...@@ -8139,18 +8139,18 @@
}, },
{ {
"name": "drupal/views_ajax_history", "name": "drupal/views_ajax_history",
"version": "1.1.0", "version": "1.2.0",
"version_normalized": "1.1.0.0", "version_normalized": "1.2.0.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.drupalcode.org/project/views_ajax_history.git", "url": "https://git.drupalcode.org/project/views_ajax_history.git",
"reference": "8.x-1.1" "reference": "8.x-1.2"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://ftp.drupal.org/files/projects/views_ajax_history-8.x-1.1.zip", "url": "https://ftp.drupal.org/files/projects/views_ajax_history-8.x-1.2.zip",
"reference": "8.x-1.1", "reference": "8.x-1.2",
"shasum": "dd5f5256e139dff1371a109959dde70d593d4d1a" "shasum": "97c19dd21327025a58deec6200e008b3c794b022"
}, },
"require": { "require": {
"drupal/core": "*" "drupal/core": "*"
...@@ -8161,8 +8161,8 @@ ...@@ -8161,8 +8161,8 @@
"dev-1.x": "1.x-dev" "dev-1.x": "1.x-dev"
}, },
"drupal": { "drupal": {
"version": "8.x-1.1", "version": "8.x-1.2",
"datestamp": "1559296088", "datestamp": "1562339886",
"security-coverage": { "security-coverage": {
"status": "covered", "status": "covered",
"message": "Covered by Drupal's security advisory policy" "message": "Covered by Drupal's security advisory policy"
......
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
} }
}); });
url = url.split('?'); url = window.location.href.split('?');
return url[0] + (query.length ? '?' + query.join('&') : ''); return url[0] + (query.length ? '?' + query.join('&') : '');
}; };
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
Drupal.Ajax.prototype.beforeSerialize = function (element, options) { Drupal.Ajax.prototype.beforeSerialize = function (element, options) {
// Check that we handle a click on a link, not a form submission. // Check that we handle a click on a link, not a form submission.
if (options.data.view_name && element && $(element).is('a')) { if (options.data.view_name && element && $(element).is('a')) {
addState(options, window.location.href); addState(options, $(element).attr('href'));
} }
// Call the original Drupal method with the right context. // Call the original Drupal method with the right context.
...@@ -222,7 +222,7 @@ ...@@ -222,7 +222,7 @@
* Object containing AJAX options. * Object containing AJAX options.
*/ */
Drupal.Ajax.prototype.beforeSubmit = function (form_values, element, options) { Drupal.Ajax.prototype.beforeSubmit = function (form_values, element, options) {
if (options.data.view_name) { if (options && options.data && options.data.view_name) {
var url = original.path + '?' + element.formSerialize(); var url = original.path + '?' + element.formSerialize();
var currentQuery = parseQueryString(window.location.href); var currentQuery = parseQueryString(window.location.href);
......
...@@ -6,8 +6,8 @@ package: Views ...@@ -6,8 +6,8 @@ package: Views
dependencies: dependencies:
- drupal:views - drupal:views
# Information added by Drupal.org packaging script on 2019-05-31 # Information added by Drupal.org packaging script on 2019-07-05
version: '8.x-1.1' version: '8.x-1.2'
core: '8.x' core: '8.x'
project: 'views_ajax_history' project: 'views_ajax_history'
datestamp: 1559296090 datestamp: 1562339889
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