Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Steps for changing the image of an existing module are as follows:

  1. Go to the styles folder and add the desired image in the image subfolder and accordingly change the image under the directories class in Aptify.mobile.css mentioned below.

    No Format
    .directories
    {background:url('images/directories.png')
    no-repeat left top;-webkit-tap-highlight-color:
    rgba(255, 255, 255, 0); }

    
    .directories:active, .directories-active-fake {background:url('images/directories.png') no-repeat left bottom;-webkit-tap-highlight-color:
    rgba(255, 255, 255, 0); }
  2. Change the view for existing directory member module:

    No Format
    directoryMembersSearch: "Views.svc/Member
    Directory?$format=json&$orderby=FirstName,LastName&PromptData={0}|{1}&Token={2}",
  3. Make the custom binding for the existing directory member module:

    Pagebeforeshow

    No Format
    $("#directories").live('pagebeforeshow', function
    (event) {

...

  1. 
        if (!AuthenticateUser())

...

  1.  {
            $("#signinout").removeClass("logout-icon")

...

  1. 
                        .addClass("login-icon-small")

...

  1. 
                        .attr("href", "memberlogin.html");

...

  1. 
        }
    });



    Pagecreate

    No Format
    $("#directories").live('pagecreate', function
    (event) {

...

  1. 
       $("#login-status").html(mobileSettings.loginStatus.format($.trim(ReadLocalStorage(Storage.DisplayName))));

...

  1. 
    });


     

    Pageshow

    No Format
    $("#directories").live('pageshow', function (event)

...

  1.  {
           memberNo = queryStringParams.id;

...

  1. 
              var url = mobileSettings.serviceURL +
           mobileSettings.services.discussionForum.format(memberNo,
           ReadLocalStorage(Storage.TokenID));

...

  1. 
           CallService(url,DirectoryMembersSuccess, DirectoryMembersFail

...

  1. 
    );

...

  1. 
    });