How to allow copying text when using jQuery UI Selectable plugin? - jquery-ui

When using jQuery UI Selectable it is impossible to select and copy text from elements to which Selectable plugin is attached.
Example is at jQuery UI Selectable homepage: you cannot select and copy texts "Item 1", "Item 2" and others.
My question is how to allow standard select-copy in this case?
As a workaround I tried to find a way to temporary disable this plugin to allow user select and copy text. But plugin's disable() method does not work for this scenario - it just disables plugin's select feature but still not allows to select-copy text.
So help here is appreciated too.

If it is ok for you to temporary disable selectable plugin, then use select-copy and then to turn selectable on, then you can use destroy method
$(".selector").selectable("destroy");
and after that recreate selectable
$(".selector").selectable();

Related

How to disable code template in Delphi 7 [duplicate]

Every time I type if and press the space bar, Delphi completes it with if True then and a new empty line above.
Is there a way to remove this "autocomplete" feature or at least edit it to not create the new line?
From the Tools | Options | Editor Options | Code Insight menu, deselect the Auto complete check box under Code template completion.
Once you disable template auto complete then you need to manually invoke the template if you want it. Do that with CTRL+J.
That's called a live template, and you can edit the list of live templates in the template window, from the View menu.
Find the template you don't like, select it, and click the "remove template code" button.
Since the default location for the live code templates is C:\Program Files (x86)\Embarcadero\Studio\16.0\ObjRepos\en\Code_Templates (for XE8, similar for other editions), you will need to change the permissions on this directory (and its subdirectories) in order to edit or add live templates. Default permissions do not include write permission to this directory.

How to enable inline editing option of a custom field in jira

Sorry if this is an obvious thing in jira. I have created a Select List type custom field and configured with few create issue and view issue screens.
Now I need this field inline editable. How can I achieve this?.
You have to add the field to the edit issue screen.
For the sake of completeness: Also Inline edit has to be activated in Administration -> General Configuration.

How to disable autocomplete code statements in code editor?

Every time I type if and press the space bar, Delphi completes it with if True then and a new empty line above.
Is there a way to remove this "autocomplete" feature or at least edit it to not create the new line?
From the Tools | Options | Editor Options | Code Insight menu, deselect the Auto complete check box under Code template completion.
Once you disable template auto complete then you need to manually invoke the template if you want it. Do that with CTRL+J.
That's called a live template, and you can edit the list of live templates in the template window, from the View menu.
Find the template you don't like, select it, and click the "remove template code" button.
Since the default location for the live code templates is C:\Program Files (x86)\Embarcadero\Studio\16.0\ObjRepos\en\Code_Templates (for XE8, similar for other editions), you will need to change the permissions on this directory (and its subdirectories) in order to edit or add live templates. Default permissions do not include write permission to this directory.

SDK 2.0p3 grid: showing hidden columns

Prior to 2.0p3 the user could choose to show hidden columns.
Is that still possible in 2.0p3? It does not appear to be, but is there an option to enable this? This functionality was nice in the previous versions, so I'm hoping it's not gone permanently.
I'm assuming you're talking about hiding and showing columns in the context of a grid.
When you are adding in your grid configuration, you must add the following config:
gridConfig: {
disableColumnMenus: false,
// more config options go here...
}
That will reenable ExtJS's default of showing the drop down menu on each grid column.
In SDK 2.0p3, we disabled the column drop down header by default due to a combination of inconsistent functionality and minor styling issues. I just filed a defect regarding this issue to make the column chooser more consistent with the rest of the app (such as the Backlog page).

Disabling hotkeys in firefox addon

Is there a way to disable keyboard shortcuts (hotkeys) in a firefox add-on?
If your addon has an overlay for browser.xul, an alternative to handling the "keypress" event is to use script in the "load" handler to remove the relevant elements from the browser XUL document like this:
var key = document.getElementById("key_openDownloads");
key.parentNode.removeChild(key);
In case it's not obvious, this removes the hotkey for opening the download manager. You can see all the keys here: http://mxr.mozilla.org/mozilla2.0/source/browser/base/content/browser-sets.inc. This is for Mozilla 2.0 (i.e. Firefox 4.0.x). You can change the tree using the dropdown at the top of the page, but I don't think these keys or their IDs change very often anyway.
Depending on your use case, this might be more convenient than catching "keypress".

Resources