Open mmenu to a submenu - mmenu

Is it possible to add a class such as “Selected” to an element to automatically open a submenu from an on page click. I can add the class with jQuery, but it doesn’t seem to open the submenu like I want it to. I am guessing that is because the menu is already drawn before the class is appended. So, I guess my next question is, if this is the case is there a way to refresh the menu after I add the class of “Selected” so that the submenu automatically opens?
Here is the code I am using to trigger the menu and add the class…
$(document).ready(function () {
$("#jobs-search").click(function() {
$('#menu-left li#search-jobs').addClass('Selected');
$("#menu-left").trigger("open.mm");
});
});
The function adds the class, but it does not open the submenu like I want it to. Is this possible?

just put the class "mm-opened" to the list item you want to expand. you can add the class after the mmenu is initialised. the submenu opens automatically - no need to refresh ;)

Related

Replace custom menu with Oracle Forms 11g default menu

In my main form window, I have the following menu bar which is used for traversing. Its inherited from .mmb file.
Now, when I select any form on the menu, lets suppose I selected the highlighted "Purchase Order", then I don't want the same menu to be shown. I want the Oracle Form 11g's default menu to be shown instead, picture added below for reference.
I changed form's property of Inherit menu to No and the menu from image 1 isn't shown in "Purchase Order" but I still am not getting the default&smartbar menu.
How can I achieve that?
Thank you.
So I figured out a way how to disable .mmx menu and enable DEFAULT&SMARTBAR menu when I go to another form through the menu.
From the first screenshot above, the on-click-trigger had the following code
call_form(:global.path||'pc');
I replaced it with
call_form(:global.path||'pc',hide,do_replace);
So the addition of
,hide,do_replace
worked.
Side note: Also, make sure Inherit Menu property of Window property is "YES" and Menu Module of form property is set to "DEFAULT&SMARTBAR"
I think in the properties window from the form you got the property "menu module"
If you make a new form it gets the default: DEFAULT&SMARTBAR
So I think it is now filled with your mmb filename.

CodeIgniter Menu bar problems

This is my menu. I fetch this menu items from database. Now, If I click on any menu items, then it goes to his page. But the menu bar is missing. I am showing my menus in master_page.php in view folder.
Now I want, this menu bar will be fixed in any page. So, I need to include or load the master_page.php file in the menu items pages? But I don't know the procedure. Please, someone help.
No. Don't use the includetag. Use as simple in controller
Explain :
If you need to load the navigation just call the view in each and every controller
$this->load->view("master_page")
Example:
$this->load->view("head")
$this->load->view("master_page")
$this->load->view("body")
$this->load->view("foot")
Importent:
Keep the order of page load.
head
navigation
body
foot

Grails: avoid browser checks when click on button

In my Grails project, I would like to use a button to jump on another page while I'm in creation of an entity.
Here is the code for the button:
<button href="${createLink(controller: 'myController', action: 'create')}">
The problem is that, clicking on that button, if I'm in creation of some entity, it performs checks on form (I see a popup below a field telling me that I need to select an element from dropdown)
How can I jump to create of another entity while I am creating / modifying another one?
Try using an anchor tag instead of a button:
Some other create page

Packery.js and <select> - how to make contols clickable?

I use Packery.js with ability to drag element. Inside the container I have <select> tag.
When I click anywhere on the container, drag event starts. Also on child elements. This prevents drop down from opening. Example under this link:
http://jsfiddle.net/Tschareck/tXdqw/1/
How can I override dragging, and instead open dropdown, when I click on it?
The trick is to use handle.
Answer to this question:
https://github.com/desandro/draggabilly/issues/37

IContextMenu:: QueryContextMenu and the "New" submenu item

Is it possible to have the "New" submenu (new folder, file ...) included in the menu queried by IContextMenu::QueryContextMenu?.
I didn't find a flag that seems to handle this need. I know that it`s possible to add an own menu but I rather want the shell sub menu.
Thanks,
SKAR

Resources