Javascript to hide buttons in a Sharepoint Document List - javascript

I've followed/modified the directions in this question to hide the "UPLOAD" button on a Sharepoint 2007 list. The issue I'm encountering is that the dropdown arrow for the Upload menu still appears. How can I get rid of the whole menu item?
Thanks

Edit: Take a look at http://features.codeplex.com/. It has Toolbar Manager
This Feature allows you to selectively show and hide menu items on the standard list/library toolbar.
Hide the zz17_UploadMenu_t table.
If you understood the answer in the question you linked, you wouldn't be asking this question. :-)
Use tools like firebug/Developer Tools (IE) to find solutions for these kind of issues.

Related

JS Tabulator row icon pop-up menu

Using JS Tabulator, this is what I have so far:
I'm looking to build a feature with JS Tabulator, which allows for row mover icon to be used as a button to show the menu. I've seen this accomplished by https://www.notion.so as they have rows with pop up menu, like so:
This allows for rows to be moved (by holding left click and moving the mouse) or to just click on the icon and menu shows up.
How can I get the menu to show in Tabulator and then show the pop-up menu it's self. My guess would be to add click handler on the icon (not sure how to do that) and then show menu (probably using some library).
If you have any further questions, please ask and thanks for any help in advance.
After much research, I believe Context Menu is the library used, with lots of styling done to it. Hope that's helpful to someone.

Adding Edit Properties To First Document Callout Menu In SharePoint 2013

I have a SharePoint 2013 page with a document library. When the user clicks on a document "..." callout, I want to add Edit Properties to that menu instead of forcing the user to click on the second "..." to get to that option. Can anyone help me do this with putting some Javascript into the Script Editor web part for the page?
TIA!
Andy
Instead of going through all of that, SharePoint offers a quick edit option for your document library. Go to your library settings -> choose the view -> and add the edit (link to edit item) column.
Simplest way to denote to your users a quicker edit feature.

jQuery Accordion Menu Items Remain Open Until Clicked

I have made a jQuery accordion menu but it doesn't seem to be acting in the default manner. Basically, when I click on a menu item the item opens as expected. However, when I click on a different menu item it also opens as expected but the first menu item remains open. The jQuery documentation states:
"An accordion doesn't allow more than one content panel to be open at the same time, and it takes a lot of effort to do that."
I promise it took very little effort to break this default functionality ;). Anyway, I have posted my JS, HTML and CSS on JSFiddle and am hoping someone can point me in the right direction. Other than opening and closing it works fine, even though it doesn't appear to on JSFiddle. Here's the link: JSFiddle Post
Thanks in advance.
Ken
Can You Organize your output page in the way that I at least can see the menu clearly. Its difficult to access the them in your html

Hover over something for information to appear in another

I have been trying to find ways to to hover over something so that more information will appear in a different section. I have been looking at similar questions that were posted but I am still not sure how to do it.
I want "Recently on Sale" to show up first, then as I hover over the others, more information will appear for them respectively. Here is the link to what I have been working on: http://jsfiddle.net/saikirakiva/jVaLd/
I have been using just css, is javascript more suitable for what I am trying to do?
Thank you!
JavaScript is useful because it allows you to delay hiding the second element when the mouse moves away from the first element. This feature is especially important in nested drop down menus, because users frequently leave a menu item for a short time while navigating to its submenu.
you can do it like this: http://jsfiddle.net/mnbayazit/Vhg6p/9/

Can chrome.contextMenus.update be used to disable a menu item?

I'm developing a Google Chrome extension that makes heavy use of the context menu, and I would like to make certain menu items available only on some domains.
Currently, I am using chrome.tabs.onUpdated and chrome.tabs.onSelectionChanged to check the tab url, and then I add or remove menu items based on a check against a domain list.
Is it possible to just disable the menu items, instead of removing them? I'm hoping for something like this:
chrome.contextMenus.update(id, {"disabled": true});
It's possible now: https://developer.chrome.com/extensions/contextMenus#property-createProperties-enabled
chrome.contextMenus.update('your-id', {
enabled: false
});
Unfortunately you cannot. That would be a neat feature I suppose. Feel free to submit a feature request http://crbug.com (Make sure you mention any valid use cases for it).
An old post but maybe someone will find this answer useful.
As of Chrome 62 the following works (puts cleaner logic on large context menus):
https://developer.chrome.com/apps/contextMenus#method-update
After the menu has been created, update the menu as follows:
chrome.contextMenus.update(intId-or-stringId, {"visible": true});
with toggle:
chrome.contextMenus.update(intId-or-stringId, {"visible": false});
Removing and creating menus will mess the order of the menu (new menus get placed at the bottom). Enabling and disabling still leaves the menu cluttered up. The visible option keeps the original order of the menu intact.

Categories