mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-25 16:29:49 -04:00
Api change for the db code SetDebug -> ToggleDebug.
This commit is contained in:
parent
dcd08a2dd1
commit
65736aa278
@ -305,7 +305,7 @@ define(['jquery', 'reference', 'tagging', 'jquery.ui'],
|
|||||||
t.find(".removeresult").click(function(e) {
|
t.find(".removeresult").click(function(e) {
|
||||||
Util.RemoveResult(e);
|
Util.RemoveResult(e);
|
||||||
});
|
});
|
||||||
// TODO(jwall): support longtouch events on mobile.
|
// TODO(jwall): support longtouch events on mobile?
|
||||||
t.find(".resultbody h2").tooltip({
|
t.find(".resultbody h2").tooltip({
|
||||||
items: ".resultbody h2",
|
items: ".resultbody h2",
|
||||||
content: function(tt) {
|
content: function(tt) {
|
||||||
|
8
js/db.js
8
js/db.js
@ -7,7 +7,7 @@ define(
|
|||||||
version: 1,
|
version: 1,
|
||||||
dbName: "dynamic_bible_db",
|
dbName: "dynamic_bible_db",
|
||||||
stores: ['tags'],
|
stores: ['tags'],
|
||||||
debug: true,
|
debug: false,
|
||||||
// Internal method not for external use.
|
// Internal method not for external use.
|
||||||
handleError: function(e) {
|
handleError: function(e) {
|
||||||
this.debug && console.log("Error: ", e);
|
this.debug && console.log("Error: ", e);
|
||||||
@ -24,9 +24,9 @@ define(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// Turn on debug logging.
|
// Turn on/off debug logging.
|
||||||
SetDebug: function() {
|
ToggleDebug: function() {
|
||||||
this.debug = self;
|
this.debug = !this.debug;
|
||||||
},
|
},
|
||||||
// Session does operations on an open database.
|
// Session does operations on an open database.
|
||||||
// ops is expected to be a function taking an IDBDatabase object
|
// ops is expected to be a function taking an IDBDatabase object
|
||||||
|
Loading…
x
Reference in New Issue
Block a user