Comments (1)
This solves the problem:
--- jquery.ui-contextmenu.js 2013-10-19 12:48:52.000000000 +0600
+++ jquery.ui-contextmenu.xhtml.js 2013-12-16 17:43:21.656726112 +0600
@@ -53,7 +53,7 @@
// If the contextmenu was bound to `document`, we apply the
// selector relative to the tag instead
targetId = ($(this.element).is(document) ? $("body") : this.element).uniqueId().attr("id");
- this.$headStyle = $("<style class='moogle-contextmenu-style'>")
+ this.$headStyle = $("<style class='moogle-contextmenu-style' />")
.prop("type", "text/css")
.html("#" + targetId + " " + opts.delegate + " { " +
"-webkit-user-select: none; " +
@@ -302,7 +302,7 @@
// hyphen, em dash, en dash: separator as defined by UI Menu 1.10
$parentLi.text(entry.title);
}else{
- $a = $("", {
+ $a = $("", {
text: "" + entry.title,
href: "#" + normCommand(entry.cmd)
}).appendTo($parentLi);
@@ -310,7 +310,7 @@
$a.data("actionHandler", entry.action);
}
if(entry.uiIcon){
- $a.append($("").addClass(entry.uiIcon));
+ $a.append($("").addClass(entry.uiIcon));
}
if(entry.disabled){
$parentLi.addClass("ui-state-disabled");
@@ -325,16 +325,16 @@
createMenuMarkup: function(options, $parentUl){
var i, menu, $ul, $li;
if( $parentUl == null ){
- $parentUl = $("").appendTo("body");
+ $parentUl = $("").appendTo("body");
}
for(i = 0; i < options.length; i++){
menu = options[i];
- $li = $("- ").appendTo($parentUl);
+ $li = $("
- ").appendTo($parentUl);
$.moogle.contextmenu.createEntryMarkup(menu, $li);
if( $.isArray(menu.children) ){
- $ul = $("
").appendTo($li);
+ $ul = $("").appendTo($li);
$.moogle.contextmenu.createMenuMarkup(menu.children, $ul);
}
}
from jquery-ui-contextmenu.
Related Issues (20)
- Punctuation characters in "cmd" cause JavaScript error HOT 3
- Plugin loading error reading jquery-ui property HOT 3
- How to use ContextMenu with HTML HOT 1
- Custom Icon issue HOT 1
- passing data from selected item to the select function HOT 4
- open an existing menu by left click HOT 1
- Problem running in Electron HOT 1
- Uncaught TypeError: $(...).zIndex is not a function #1 HOT 3
- jquery-migrate-3.0.0.js warning HOT 4
- What parameter in .contextmenu is used to indicate that context menu should appear on hover? HOT 1
- Context menu on hover and hide when not hover HOT 2
- Blur is fired even when I moved between context menu items HOT 1
- Contextmenu when element has no children HOT 2
- Can't create two contextmenu for the same wrapper element (document) HOT 2
- menu item title dash "-" is not showing, but showing as seperator HOT 5
- Destroy throws error HOT 2
- Live demo error HOT 1
- Checking if a context menu is opened/closed or destroyed HOT 2
- Typescript definitions? HOT 3
- disabled handler / issues HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-ui-contextmenu.