forked from External/greenlight
GRN2-180: First stages of refactoring code for v2.4 (#748)
* Email rescues and authenticator concern * Application controller and helper clean up * Moved controller code out of helpers * More helper and email clean up * Cleaned up remaining helpers and create omniauth_options * Controller code clean up * restructured views structure * Restructured role code * Restructured profile and code clean up * Master merge * Added bbb server concern to deal with bbb calls * Bug fixes and changes after changes * rspec * More rubocop fixes
This commit is contained in:
@ -79,7 +79,7 @@ $(document).on('turbolinks:load', function(){
|
||||
// Change the branding image to the image provided
|
||||
function changeBrandingImage(path) {
|
||||
var url = $("#branding-url").val()
|
||||
$.post(path, {url: url})
|
||||
$.post(path, {value: url})
|
||||
}
|
||||
|
||||
// Filters by role
|
||||
@ -157,19 +157,19 @@ function loadColourSelectors() {
|
||||
});
|
||||
|
||||
pickrRegular.on("save", (color, instance) => {
|
||||
$.post($("#coloring-path-regular").val(), {color: color.toHEXA().toString()}).done(function() {
|
||||
$.post($("#coloring-path-regular").val(), {value: color.toHEXA().toString()}).done(function() {
|
||||
location.reload()
|
||||
});
|
||||
})
|
||||
|
||||
pickrLighten.on("save", (color, instance) => {
|
||||
$.post($("#coloring-path-lighten").val(), {color: color.toHEXA().toString()}).done(function() {
|
||||
$.post($("#coloring-path-lighten").val(), {value: color.toHEXA().toString()}).done(function() {
|
||||
location.reload()
|
||||
});
|
||||
})
|
||||
|
||||
pickrDarken.on("save", (color, instance) => {
|
||||
$.post($("#coloring-path-darken").val(), {color: color.toHEXA().toString()}).done(function() {
|
||||
$.post($("#coloring-path-darken").val(), {value: color.toHEXA().toString()}).done(function() {
|
||||
location.reload()
|
||||
});
|
||||
})
|
||||
|
Reference in New Issue
Block a user