Skip to content

Commit 429f761

Browse files
committed
editable class name
1 parent 712fbac commit 429f761

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Griddly/Scripts/editly.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
this.$element.find("tbody td").each(function () {
6767
if (self.options.editors[this.cellIndex] != null) {
6868
$(this).removeAttr("tabindex");
69+
$(this).removeClass("editly-editable");
6970
}
7071
else
7172
$(this).css("cursor", "");
@@ -292,8 +293,10 @@
292293

293294
this.$element.find("tbody td").each(function () {
294295
if (self.options.editors[this.cellIndex] != null) {
295-
if (!this.tabIndex || this.tabIndex < 0)
296+
if (!this.tabIndex || this.tabIndex < 0) {
296297
this.tabIndex = 0;
298+
$(this).addClass("editly-editable");
299+
}
297300
}
298301
else
299302
$(this).css("cursor", "default");

0 commit comments

Comments
 (0)