Re: Remove right click functionalities for the selected categories in the Image gallery

  •  02-19-2014, 8:51 AM

    Re: Remove right click functionalities for the selected categories in the Image gallery

    Hi,

     

    1. Please open file "\CuteSoft_Client\Gallery\Popup\Default\Code.js".

     

    2. Find function below 

     

    GalleryPopup.prototype.ShowPhotoMenu=function _GalleryPopup_ShowPhotoMenu(photo,element,event,listener)

    {}

     

    3.  Add the section below into the function above. then it will disable the context menu of the category images what you set in it. you can find the category id from file category.config.

     

    1. //disable the content menu for category3 images  
    2.     if (photo.CategoryID == "3")  
    3.     {  
    4.          return;  
    5.     }  
     

    Regards,

     

    Ken 

View Complete Thread