Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. function ShowItemsMenuWhenItemsSelected() {
  2. var oldToggleItemRowSelection2 = ToggleItemRowSelection2;
  3. ToggleItemRowSelection2 = function (ctxCur, tr, fSelect, a, b) {
  4. oldToggleItemRowSelection2(ctxCur, tr, fSelect, a, b)
  5. //var items = SP.ListOperation.Selection.getSelectedItems();
  6. if (ctxCur.CurrentSelectedItems > 0) {
  7. SelectRibbonTab("Ribbon.ListItem", true); //set the Browse button as default
  8. }
  9. else {
  10. SelectRibbonTab("Ribbon.Read", true); //set the Browse button as default
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement