This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Visualitzation User
#3
In JS you can make all element read only and hide all inline elements like this. This will work only in gui
Code:
$(function() {
  if (window.Globals && Globals.user == 'admin') {
    $('.item-control').addClass('item-read-only');
    $('.item-control-single').addClass('hide');
  }
});
------------------------------
Ctrl+F5
Reply


Messages In This Thread
Visualitzation User - by jmir - 14.07.2022, 06:34
RE: Visualitzation User - by fleeceable - 14.07.2022, 08:31
RE: Visualitzation User - by Daniel - 14.07.2022, 08:41
RE: Visualitzation User - by jmir - 14.07.2022, 10:20
RE: Visualitzation User - by jmir - 14.07.2022, 08:46
RE: Visualitzation User - by Daniel - 14.07.2022, 10:35
RE: Visualitzation User - by jmir - 14.07.2022, 12:54
RE: Visualitzation User - by Ibrahim - 13.04.2023, 19:38
RE: Visualitzation User - by admin - 14.04.2023, 07:15
RE: Visualitzation User - by Ibrahim - 14.04.2023, 07:28
RE: Visualitzation User - by admin - 14.04.2023, 08:05
RE: Visualitzation User - by Ibrahim - 14.04.2023, 08:42

Forum Jump: