From 914102a0e3e028f5fa02e39bc268580be931b905 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Thu, 6 Nov 2014 15:34:51 +0100 Subject: [PATCH] fix multiple removeClass arguments to be space seperated --- .../app/controllers/getting_started.js.coffee | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/assets/javascripts/app/controllers/getting_started.js.coffee b/app/assets/javascripts/app/controllers/getting_started.js.coffee index 50a976ff4..562362f31 100644 --- a/app/assets/javascripts/app/controllers/getting_started.js.coffee +++ b/app/assets/javascripts/app/controllers/getting_started.js.coffee @@ -19,7 +19,7 @@ class Index extends App.ControllerContent @fetch() release: => - @el.removeClass('fit', 'getstarted') + @el.removeClass('fit getstarted') fetch: -> @@ -74,7 +74,7 @@ class Base extends App.ControllerContent @fetch() release: => - @el.removeClass('fit', 'getstarted') + @el.removeClass('fit getstarted') fetch: -> @@ -171,14 +171,14 @@ class Base extends App.ControllerContent @$('.base').addClass('hide') @$('.base-outbound').removeClass('hide') @$('.base-inbound').addClass('hide') - @$('.wizard-controls .btn').text('Check').attr('data-form', 'base-outbound').addClass('btn--primary').removeClass('btn--danger', 'btn--success') + @$('.wizard-controls .btn').text('Check').attr('data-form', 'base-outbound').addClass('btn--primary').removeClass('btn--danger btn--success') @enable( @$('.btn') ) showInbound: => @$('.base').addClass('hide') @$('.base-outbound').addClass('hide') @$('.base-inbound').removeClass('hide') - @$('.wizard-controls .btn').text('Check').attr('data-form', 'base-inbound').addClass('btn--primary').removeClass('btn--danger', 'btn--success') + @$('.wizard-controls .btn').text('Check').attr('data-form', 'base-inbound').addClass('btn--primary').removeClass('btn--danger btn--success') @enable( @$('.btn') ) storeUrl: (e) => @@ -197,10 +197,10 @@ class Base extends App.ControllerContent processData: true success: (data, status, xhr) => if data.result is 'ok' - @$('.wizard-controls .btn').text('Done').removeClass('btn--primary', 'btn--danger').addClass('btn--success') + @$('.wizard-controls .btn').text('Done').removeClass('btn--primary btn--danger').addClass('btn--success') @delay( @showOutbound, 1500 ) else - @$('.wizard-controls .btn').text( data.message_human || data.message ).addClass('btn--danger').removeClass('btn--primary', 'btn--success') + @$('.wizard-controls .btn').text( data.message_human || data.message ).addClass('btn--danger').removeClass('btn--primary btn--success') @enable(e) fail: => @enable(e) @@ -221,10 +221,10 @@ class Base extends App.ControllerContent processData: true success: (data, status, xhr) => if data.result is 'ok' - @$('.wizard-controls .btn').text('Done').removeClass('btn--primary', 'btn--danger').addClass('btn--success') + @$('.wizard-controls .btn').text('Done').removeClass('btn--primary btn--danger').addClass('btn--success') @delay( @showInbound, 1500 ) else - @$('.wizard-controls .btn').text( data.message_human || data.message ).addClass('btn--danger').removeClass('btn--primary', 'btn--success') + @$('.wizard-controls .btn').text( data.message_human || data.message ).addClass('btn--danger').removeClass('btn--primary btn--success') @enable(e) fail: => @enable(e) @@ -248,10 +248,10 @@ class Base extends App.ControllerContent success: (data, status, xhr) => if data.result is 'ok' - @$('.wizard-controls .btn').text('Done').removeClass('btn--primary', 'btn--danger').addClass('btn--success') + @$('.wizard-controls .btn').text('Done').removeClass('btn--primary btn--danger').addClass('btn--success') @delay( @goToAdmin, 1500 ) else - @$('.wizard-controls .btn').text( data.message_human || data.message ).addClass('btn--danger').removeClass('btn--primary', 'btn--success') + @$('.wizard-controls .btn').text( data.message_human || data.message ).addClass('btn--danger').removeClass('btn--primary btn--success') @enable(e) fail: => @enable(e) @@ -289,7 +289,7 @@ class Admin extends App.ControllerContent @fetch() release: => - @el.removeClass('fit', 'getstarted') + @el.removeClass('fit getstarted') fetch: -> @@ -408,7 +408,7 @@ class Agent extends App.ControllerContent release: => - @el.removeClass('fit', 'getstarted') + @el.removeClass('fit getstarted') fetch: ->