Merge pull request #14108 from ibennetch/ie_compatibility

Fixes JavaScript error when editing rows with Internet Explorer
This commit is contained in:
Maurício Meneghini Fauth 2018-03-23 02:58:05 -03:00 committed by GitHub
commit 6fc885c964
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -7,6 +7,8 @@ phpMyAdmin - ChangeLog
- issue #13931 Fixed browsing tables with more results
- issue #13927 "Not an integer" when browsing a table
- issue #13887 "Input variables exceeded 1000" error relating to PHP's max_input_vars directive
- issue #14060 Can't edit rows in Internet Explorer
- issue #14096 Internet Explorer compatibility; fixes JavaScript error Object doesn't support property or method 'startsWith'
4.7.8 (2018-02-20)
- issue #13914 Fixed resetting default setting values.

View File

@ -1846,7 +1846,7 @@ function getJSConfirmCommonParam (elem, params) {
var $elem = $(elem);
if (params) {
// Strip possible leading ?
if (params.startsWith('?')) {
if (params.substring(0,1) == '?') {
params = params.substr(1);
}
params += '&';
@ -4980,7 +4980,7 @@ AJAX.registerOnload('functions.js', function(){
jQuery.fn.getPostData = function() {
var dataPost = this.attr('data-post');
// Strip possible leading ?
if (dataPost !== undefined && dataPost.startsWith('?')) {
if (dataPost !== undefined && dataPost.substring(0,1) == '?') {
dataPost = dataPost.substr(1);
}
return dataPost;