forked from External/greenlight
GRN-88: Fixed some things that Scrutinizer was complaining about (#433)
* Scrutinizer fixes * Moved helper code to concern * Another scrutinizer fix * User controller conflict fix * Another user controller fix * Added include verifier
This commit is contained in:
committed by
Jesus Federico
parent
5e3aa72955
commit
88776eaadb
@ -62,13 +62,13 @@ $(document).on('turbolinks:load', function(){
|
||||
//show all elements & their children with a create-only class
|
||||
$(".create-only").each(function() {
|
||||
$(this).show()
|
||||
if($(this).children().length > 0) $(this).children().show()
|
||||
if($(this).children().length > 0) { $(this).children().show() }
|
||||
})
|
||||
|
||||
//hide all elements & their children with a update-only class
|
||||
$(".update-only").each(function() {
|
||||
$(this).attr('style',"display:none !important")
|
||||
if($(this).children().length > 0) $(this).children().attr('style',"display:none !important")
|
||||
if($(this).children().length > 0) { $(this).children().attr('style',"display:none !important") }
|
||||
})
|
||||
})
|
||||
|
||||
@ -81,13 +81,13 @@ $(document).on('turbolinks:load', function(){
|
||||
//show all elements & their children with a update-only class
|
||||
$(".update-only").each(function() {
|
||||
$(this).show()
|
||||
if($(this).children().length > 0) $(this).children().show()
|
||||
if($(this).children().length > 0) { $(this).children().show() }
|
||||
})
|
||||
|
||||
//hide all elements & their children with a create-only class
|
||||
$(".create-only").each(function() {
|
||||
$(this).attr('style',"display:none !important")
|
||||
if($(this).children().length > 0) $(this).children().attr('style',"display:none !important")
|
||||
if($(this).children().length > 0) { $(this).children().attr('style',"display:none !important") }
|
||||
})
|
||||
|
||||
updateCurrentSettings($(this).closest("#room-block").data("room-settings"))
|
||||
@ -105,7 +105,7 @@ $(document).on('turbolinks:load', function(){
|
||||
//set dropdown value
|
||||
if (settings.joinViaHtml5) {
|
||||
updateDropdown($(".dropdown-item[value='html5']"))
|
||||
} else if (settings.joinViaHtml5 == false) {
|
||||
} else if (settings.joinViaHtml5 === false) {
|
||||
updateDropdown($(".dropdown-item[value='flash']"))
|
||||
} else { //default option
|
||||
updateDropdown($(".dropdown-item[value='default']"))
|
||||
|
Reference in New Issue
Block a user