-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change dom_ready event name to use colon as the separator
... which is the standard way for adding prefixes. The old event name still triggers for compatibility. Refs. #3600
- Loading branch information
Showing
8 changed files
with
62 additions
and
10 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
spec/dummy_app/app/assets/javascripts/rails_admin/custom/ui.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
window.domReadyTriggered = []; | ||
|
||
document.addEventListener("rails_admin:dom_ready", function () { | ||
window.domReadyTriggered.push("plainjs/colon"); | ||
}); | ||
|
||
document.addEventListener("rails_admin.dom_ready", function () { | ||
window.domReadyTriggered.push("plainjs/dot"); | ||
}); | ||
|
||
$(document).on("rails_admin:dom_ready", function () { | ||
window.domReadyTriggered.push("jquery/colon"); | ||
}); | ||
|
||
$(document).on("rails_admin.dom_ready", function () { | ||
window.domReadyTriggered.push("jquery/dot"); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters