Skip to content

Commit

Permalink
Options for example
Browse files Browse the repository at this point in the history
  • Loading branch information
tsv2013 committed Apr 14, 2017
1 parent f069d86 commit 0eb877d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@
<div id="manage" data-bind="template: 'surveys-manage'"></div>
<div id="editor"></div>
<script type="text/javascript">
var editor = new SurveyEditor.SurveyEditor("editor", {isAutoSave:true});
var editor = new SurveyEditor.SurveyEditor("editor");
//editor.surveyId = '5af48e08-a0a5-44a5-83f4-1c90e8e98de1';
//editor.surveyPostId = '3ce10f8b-2d8a-4ca2-a110-2994b9e697a1';
editor.saveSurveyFunc = function () { alert('ok'); };
editor.saveSurveyFunc = function (saveNo, callback) { alert('ok'); callback(saveNo, true) };

//editor.loadSurvey("b2b56b2c-ad9e-4951-8f0e-c246d6b6a52a");
editor.showOptions = true;
editor.showState = true;
//editor.loadSurvey("a0f7f132-eee4-42e4-b8c8-f8b16840a478");
//editor.loadSurvey("65c74d4a-3b16-412f-8200-9ac53c8f5c0b");

ko.applyBindings(new SurveyEditor.SurveysManager("https://dxsurvey.com", "a797f29b53f8455e8b3ef317f8904dac", editor), document.getElementById("manage"));
//ko.applyBindings(new SurveyEditor.SurveysManager("https://dxsurvey.com", "a797f29b53f8455e8b3ef317f8904dac", editor), document.getElementById("manage"));
</script>
</body>
</html>

0 comments on commit 0eb877d

Please sign in to comment.