Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.6 to 2 conversion - unable to figure out conversion #261

Open
PandaWood opened this issue May 17, 2016 · 0 comments
Open

1.6 to 2 conversion - unable to figure out conversion #261

PandaWood opened this issue May 17, 2016 · 0 comments

Comments

@PandaWood
Copy link

PandaWood commented May 17, 2016

I can't understand what needs to be done to v1.6 code to get it to work under v2.
I realize the documentation is inadequate, but even with the source code it seems like I just cannot do what I've done before.

This is my old code.

  $.nyroModalSettings
        type: 'iframe'
        minWidth: 700
        minHeight: 420
        showBackground: (elts, settings, callback)->
            elts.bg.css({opacity:0}).fadeTo 200, 0.70, callback
        hideBackground: (elts, settings, callback)->
            elts.bg.fadeOut 100, callback


    $('.someLink a').click (e)->
        e.preventDefault()
        sentence = $(@).closest('td').data('sentence').replace(/\s*/g, '')
        $.nyroModalManual
            title: sentence
            url: $(@).attr('href')

The closest I can get just doesn't work


$('.someLink a').nyroModal
        type: 'iframe'
        sizes:
            minW: 700
            minH: 420
        anim: 
            showBg: (elts, settings, callback)->
                elts.bg.css({opacity:0}).fadeTo 200, 0.70, callback
            hideBg: (elts, settings, callback)->
                elts.bg.fadeOut 100, callback


    $('.grammarLink a').click (e)->
        e.preventDefault()
        sentence = $(@).closest('td').data('sentence').replace(/\s*/g, '')
        url = $(@).attr 'href'
        $.nmManual url, title: sentence
@PandaWood PandaWood changed the title v2 conversion can't make sense of it 1.6 to 2 conversion - unable to figure out replacements May 23, 2016
@PandaWood PandaWood changed the title 1.6 to 2 conversion - unable to figure out replacements 1.6 to 2 conversion - unable to figure out conversion May 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant