Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Marc-Anthony Taylor 55 posts 68 karma points
    Dec 05, 2012 @ 09:53
    Marc-Anthony Taylor
    0

    Second try: Getting return value from a custom context menu item

    I don't know how to get the value from the javascript function. Can anyone help?

     

    private class CreateForAllLang : IAction
            {
    
                public string Alias
                {
                    get { return "Create for All Languages"; }
                }
    
                public bool CanBePermissionAssigned
                {
                    get { return true; }
                }
    
                public string Icon
                {
                    get { return "images/about.png"; }
                }
    
                public string JsFunctionName
                {
                    get { return "AddItem();"; }
                }
    
                public string JsSource
                {
                    get
                    {
                        return "function AddItem(){" +
                               "var multiLang = confirm('Create for all languages?');}";
                    }
                }
    
                public char Letter
                {
                    get { return 'รค'; }
                }
    
                public bool ShowInNotifier
                {
                    get { return false; }
                }
            }
Please Sign in or register to post replies

Write your reply to:

Draft