Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 9ee8caf

Browse files
committed
fix(options): updated options to match rename
1 parent 14552c9 commit 9ee8caf

File tree

7 files changed

+13
-14
lines changed

7 files changed

+13
-14
lines changed

dist/jquery.gridstrap.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ var Handlers = (function () {
207207
return;
208208
}
209209

210-
if (options.enableDragging && !$cell.hasClass(options.dragCellClass)) {
210+
if (options.draggable && !$cell.hasClass(options.dragCellClass)) {
211211

212212
this.internal.SetMouseDownData(mouseEvent, $cell);
213213

@@ -225,7 +225,7 @@ var Handlers = (function () {
225225
// clear initially.
226226
this.internal.LastMouseOverCellTarget = null;
227227

228-
if (!gridstrapContext.options.enableDragging) {
228+
if (!gridstrapContext.options.draggable) {
229229
return;
230230
}
231231

@@ -356,7 +356,7 @@ var Handlers = (function () {
356356
var context = this.setup.Context;
357357
var options = this.setup.Options;
358358

359-
if (!options.enableDragging) {
359+
if (!options.draggable) {
360360
return;
361361
}
362362

dist/jquery.gridstrap.min.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
* Made by Ross P
77
* Under MIT License
88
*/
9-
.gridstrap-cell-visible{position:absolute!important;transition:width 1.5s,height .5s,left 1.5s,top 1.5s;transition:width .2s,height .2s,left .2s,top .2s}.gridstrap-cell-hidden{opacity:.1;pointer-events:none}.gridstrap-cell-drag{transition:width .1s,height .1s,left .1s,top .1s;z-index:10000}.gridstrap-cell-resize{transition:none;z-index:10000}.gridstack-noncontiguous{opacity:.02}
9+
.gridstrap-cell-visible{position:absolute!important;transition:width .2s,height .2s,left .2s,top .2s}.gridstrap-cell-hidden{opacity:0;pointer-events:none}.gridstrap-cell-drag{transition:width 50ms,height 50ms,left 50ms,top 50ms;z-index:10000}.gridstrap-cell-resize{transition:width 50ms,height 50ms,left 50ms,top 50ms;z-index:10000}.gridstack-noncontiguous{opacity:.02}

dist/jquery.gridstrap.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jquery.gridstrap.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/jquery.gridstrap.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ var Handlers = (function () {
215215
return;
216216
}
217217

218-
if (options.enableDragging && !$cell.hasClass(options.dragCellClass)) {
218+
if (options.draggable && !$cell.hasClass(options.dragCellClass)) {
219219

220220
this.internal.SetMouseDownData(mouseEvent, $cell);
221221

@@ -233,7 +233,7 @@ var Handlers = (function () {
233233
// clear initially.
234234
this.internal.LastMouseOverCellTarget = null;
235235

236-
if (!gridstrapContext.options.enableDragging) {
236+
if (!gridstrapContext.options.draggable) {
237237
return;
238238
}
239239

@@ -364,7 +364,7 @@ var Handlers = (function () {
364364
var context = this.setup.Context;
365365
var options = this.setup.Options;
366366

367-
if (!options.enableDragging) {
367+
if (!options.draggable) {
368368
return;
369369
}
370370

docs/responsive.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
<!DOCTYPE html>
32
<html lang="en-us">
43
<head>
@@ -11,7 +10,7 @@
1110

1211
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
1312

14-
<link rel="stylesheet" href="./jquery,gridstrap.css">
13+
<link rel="stylesheet" href="./jquery.gridstrap.css">
1514
<link rel="stylesheet" href="./indexstyle.css">
1615

1716
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->

src/handlers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class Handlers {
3737
return;
3838
}
3939

40-
if (options.enableDragging && !$cell.hasClass(options.dragCellClass)) {
40+
if (options.draggable && !$cell.hasClass(options.dragCellClass)) {
4141

4242
this.internal.SetMouseDownData(mouseEvent, $cell);
4343

@@ -55,7 +55,7 @@ export class Handlers {
5555
// clear initially.
5656
this.internal.LastMouseOverCellTarget = null;
5757

58-
if (!gridstrapContext.options.enableDragging) {
58+
if (!gridstrapContext.options.draggable) {
5959
return;
6060
}
6161

@@ -186,7 +186,7 @@ export class Handlers {
186186
let context = this.setup.Context;
187187
let options = this.setup.Options;
188188

189-
if (!options.enableDragging) {
189+
if (!options.draggable) {
190190
return;
191191
}
192192

0 commit comments

Comments
 (0)