Code Monkey home page Code Monkey logo

Comments (1)

poofeg avatar poofeg commented on August 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.