diff --git a/extensions/goto/deck.goto.js b/extensions/goto/deck.goto.js index 6a90f16c..32abebb8 100644 --- a/extensions/goto/deck.goto.js +++ b/extensions/goto/deck.goto.js @@ -15,6 +15,25 @@ the deck container. var $document = $(document); var rootCounter; + var maybeAddSnippet = function() { + var options = $.deck('getOptions'); + if (options.snippets.goto) { + if ($(options.selectors.gotoForm).size() > 0 && options.alert.goto) { + alert("'options.snippets.goto' is true but a "+options.selectors.gotoForm+" has been found." + +"\nThis might cause interaction glitches." + +"\n" + +"\nSuggestion: remove your html snippet or pass the {snippets: {goto: false}} option." + ); + } + $('
').addClass('goto-form').attr('action', '.').attr('method', 'get') + .append($('