Conversation
benrudolph
left a comment
There was a problem hiding this comment.
(easiest to review all at once)
| _private.navigateBack = function() { | ||
| var previewWindow = $appPreviewIframe[0].contentWindow; | ||
| var $appPreviewIframe = $(module.SELECTORS.PREVIEW_WINDOW.IFRAME), | ||
| previewWindow = $appPreviewIframe[0].contentWindow; |
There was a problem hiding this comment.
this fixes a minor issue in this PR: #13774 (comment)
| savedDisplayOptions = _.pick( | ||
| Util.getSavedDisplayOptions(), | ||
| FormplayerFrontend.Constants.ALLOWED_SAVED_OPTIONS | ||
| ); |
There was a problem hiding this comment.
essentially we'll load the saved display options from localStorage. the key is namespaced by domain and username
| // For Chrome, the origin property is in the event.originalEvent object | ||
| var origin = event.origin || event.originalEvent.origin, | ||
| data = event.data, | ||
| returnValue = null, |
There was a problem hiding this comment.
this was unfortunate, but it's impossible to use postMessage with callbacks since it only accepts serializable data. the only other option is to use eval which i don't want to do. i think we'll have to use this as a one way messaging API
| .btn-hardware { | ||
| display: inline-block; | ||
| } | ||
| } |
There was a problem hiding this comment.
this is only temporary until redesign of hardware buttons happen
| FormplayerFrontend.on('clearRestoreAsUser', function() { | ||
| var user = FormplayerFrontend.request('currentUser'); | ||
| var user = FormplayerFrontend.request('currentUser'), | ||
| appId; |
There was a problem hiding this comment.
'appId' is defined but never used (no-unused-vars)
| domain: 'domain', | ||
| apps: [], | ||
| }; | ||
| sinon.stub(Backbone.history, 'start', sinon.spy()); |
There was a problem hiding this comment.
'Backbone' is not defined. (no-undef)
|
|
||
| afterEach(function() { | ||
| server.restore(); | ||
| Backbone.history.start.restore(); |
There was a problem hiding this comment.
'Backbone' is not defined. (no-undef)
| }); | ||
|
|
||
| it('should retrieve saved display options', function() { | ||
| var options = { option: 'yes' } |
There was a problem hiding this comment.
Missing semicolon. (semi)
1757bc1 to
7c783cc
Compare
|
Ok this should now be g2g. made a last minute decision to not show the settings tile on regular formplayer until one question per screen is better supported |


@biyeun @wpride Adds basic ability to turn on and off one question per screen. label because there are a few things i want to do first
Here's what it currently looks like (looks a bit better in full screen mode):
@biyeun one question per screen doesn't work in full screen mode because i think we conflate the
phoneModeandoneQuestionPerScreenmode. will try and make a pass at getting OQPS to work in full screen mode: