Fix getPostData function
dataPost can be undefined Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
This commit is contained in:
parent
1fc566fd90
commit
367f49b12b
@ -5093,9 +5093,8 @@ function configGet(key, cached=true)
|
||||
jQuery.fn.getPostData = function() {
|
||||
var dataPost = this.attr('data-post');
|
||||
// Strip possible leading ?
|
||||
if (dataPost.startsWith('?')) {
|
||||
if (dataPost !== undefined && dataPost.startsWith('?')) {
|
||||
dataPost = dataPost.substr(1);
|
||||
}
|
||||
return dataPost;
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user