• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

Disable Right-Click feature in Admin Panel?

Status
Not open for further replies.

dotch

Chevereto Member
Can I dissable the right-click feature in the Admin Panel?

It's not particularly useful and it intervenes with my Firefox right-click menu and plugins. I can't use some plugins at all...

Anyone?
 
Naah, I can't get used to it. I kinda get a little nervous when a script intervenes with my pc/browsers features. Plus I can't use the panel on my Android Touch Screen Mobile (don't know how).

Cheers!
 
Open admin/content/system/js/admin.js and do this edits:

1. Replace this:
Code:
    $("html").bind("click keyup", function(event) {
        if($(shade).exists() && event.keyCode==27) $(shade).trigger("click");
        $(select_label+"."+active_class, $(filter)).trigger("click");
        $(context_menu).remove();
    }).contextmenu(function(event) {
        $(context_menu).remove();
        if(!$(event.target).is("input")) event.preventDefault();
    });

1.1 With this:
Code:
    $("html").bind("click keyup", function(event) {
        if($(shade).exists() && event.keyCode==27) $(shade).trigger("click");
        $(select_label+"."+active_class, $(filter)).trigger("click");
        $(context_menu).remove();
    })


2. Then replace this:
Code:
    $(list_items)
        .live("contextmenu", function(event) {

2.1 With this:
Code:
    $("#idontwanttherightclick")
        .live("contextmenu", function(event) {
 
Status
Not open for further replies.
Back
Top