Skip to content

Commit

Permalink
Fix error copy paste
Browse files Browse the repository at this point in the history
  • Loading branch information
magiccart committed Jun 13, 2022
1 parent ae4678e commit 890ed0b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions view/base/web/js/grid-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: Alex Dong
* @Date: 2020-07-29 13:21:07
* @Last Modified by: Alex Dong
* @Last Modified time: 2022-06-09 09:11:22
* @Last Modified time: 2022-06-13 10:59:10
*/

define([
Expand All @@ -23,15 +23,15 @@ define([
this._initSlider();
},

_.uniqid = function (length=10) {
_uniqid: function (length=10) {
let result = '';
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
const characters = 'abcdefghijklmnopqrstuvwxyz0123456789';
const charactersLength = characters.length;
for ( let i = 0; i < length; i++ ) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
}
return result;
};
},

_initSlider: function () {
var options = this.options;
Expand Down

0 comments on commit 890ed0b

Please sign in to comment.