Add specs for user changing table

This commit is contained in:
2013-12-26 09:30:57 +01:00
parent 50a95fa6fb
commit c6f0976d11
7 changed files with 94 additions and 4 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ window.Qwaiter=
.append('<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>')
.append('<h3>'+title+'</h3>').appendTo(wrapper)
body = $('<div class="modal-body"></div>').append('<p>'+content+'</p>').appendTo(wrapper)
ok_button = $('<a href="#" class="btn btn-primary">Yes</a>')
ok_button = $('<a href="#" class="btn btn-primary confirm-ok">Yes</a>')
if typeof(options.ok) == 'function'
ok_button.click(callback_wrapper)
else
@@ -28,7 +28,7 @@ window.Qwaiter=
eval(options.ok)
wrapper.modal('hide')
footer = $('<div class="modal-footer"></div>')
.append($('<a href="#" class="btn">Close</a>').click(callback_cancel_wrapper))
.append($('<a href="#" class="btn confirm-cancel">Close</a>').click(callback_cancel_wrapper))
.append(ok_button)
.appendTo(wrapper)
wrapper.modal()
@@ -79,7 +79,7 @@ var $translations = {
cannot_move_to_occupied_table: 'You cannot move to an occupied table',
moved_to_another_table: 'The table is changed.',
confirmation_title: 'Move to another table?',
confirmation_body: 'Are you sure you want to move to another table?'
confirmation_body: 'Do you want to move to another table?'
},
models: <%= I18n.t('activemodel.models', locale: :en).to_json %>,
attributes: <%= I18n.t('activemodel.attributes', locale: :en).to_json %>,
@@ -120,7 +120,7 @@ var $translations = {
cannot_move_to_occupied_table: 'Je kan niet verhuizen naar een tafel die reeds gebruikt wordt.',
moved_to_another_table: 'De tafel is gewijzigd.',
confirmation_title: 'Naar een andere tafel verhuizen?',
confirmation_body: 'Ben je aan een andere tafel gaan zitten?'
confirmation_body: 'Wil je aan een andere tafel gaan zitten?'
},
models: <%= I18n.t('activemodel.models', locale: :nl).to_json %>,
attributes: <%= I18n.t('activemodel.attributes', locale: :nl).to_json %>,