Skip to content
This repository has been archived by the owner on Aug 14, 2021. It is now read-only.

Commit

Permalink
Add header to jQuery UI 1.11 demo
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed May 18, 2016
1 parent 733a4ff commit fa53852
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 21 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# 1.11.1-0 / Unreleased
# 1.12.1-0 / Unreleased

*

# 1.12.0 / 2016-05-18

* [FEATURE] Support jQuery UI 1.12 (wrap menu items in separate `<div>` tags)
* [FEATURE] #100 new menu option `isHeader` for category headers.
Expand Down
14 changes: 7 additions & 7 deletions demo/index-1-10.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>jquery.ui-contextmenu.js - Demo (jQuery 1.10)</title>
<title>jquery.ui-contextmenu.js - Demo (jQuery UI 1.10)</title>

<link href="//code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" type="text/css" rel="stylesheet" />
<script src="//code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.min.js" type="text/javascript"></script>
<link href="//code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel="stylesheet" />
<script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.min.js"></script>

<!-- Some custom library to enable 'taphold' events -->
<script src="jquery-taphold/taphold.js" type="text/javascript"></script>
<script src="jquery-taphold/taphold.js"></script>

<!-- Custom library to add a dynamic themeroller switcher -->
<script type="text/javascript" src="../lib/Super-Theme-Switcher/jquery.themeswitcher.js"></script>
<script src="../lib/Super-Theme-Switcher/jquery.themeswitcher.js"></script>

<script src="../jquery.ui-contextmenu.js" type="text/javascript"></script>
<script src="../jquery.ui-contextmenu.js"></script>

<style type="text/css">

Expand Down
16 changes: 8 additions & 8 deletions demo/index-1-12.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>jquery.ui-contextmenu.js - Demo</title>
<title>jquery.ui-contextmenu.js - Demo (jQuery UI 1.12)</title>

<link href="//code.jquery.com/ui/1.12.0-rc.2/themes/base/jquery-ui.css" type="text/css" rel="stylesheet" />
<script src="//code.jquery.com/jquery-1.11.3.min.js" type="text/javascript"></script>
<script src="//code.jquery.com/ui/1.12.0-rc.2/jquery-ui.min.js" type="text/javascript"></script>
<link href="//code.jquery.com/ui/1.12.0-rc.2/themes/base/jquery-ui.css" rel="stylesheet" />
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="//code.jquery.com/ui/1.12.0-rc.2/jquery-ui.min.js"></script>

<!-- Optional custom library to enable 'taphold' events -->
<script src="jquery-taphold/taphold.js" type="text/javascript"></script>
<script src="jquery-taphold/taphold.js"></script>

<!-- Just for this demo: Custom library to add a dynamic themeroller switcher -->
<script type="text/javascript" src="../lib/Super-Theme-Switcher/jquery.themeswitcher.js"></script>
<script src="../lib/Super-Theme-Switcher/jquery.themeswitcher.js"></script>

<!-- Finally this plugin itself -->
<script src="../jquery.ui-contextmenu.js" type="text/javascript"></script>
<script src="../jquery.ui-contextmenu.js"></script>

<style type="text/css">

Expand Down Expand Up @@ -82,7 +82,7 @@
preventSelect: true,
taphold: true,
menu: [
{title: "Menu Header", isHeader: true},
{title: "Menu Header", cmd: "cat1", isHeader: true},
{title: "Cut <kbd>Ctrl+X</kbd>", cmd: "cut", uiIcon: "ui-icon-scissors"},
{title: "Copy <kbd>Ctrl+C</kbd>", cmd: "copy", uiIcon: "ui-icon-copy"},
{title: "Paste <kbd>Ctrl+V</kbd>", cmd: "paste", uiIcon: "ui-icon-clipboard", disabled: true },
Expand Down
11 changes: 6 additions & 5 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>jquery.ui-contextmenu.js - Demo</title>

<link href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" type="text/css" rel="stylesheet" />
<script src="//code.jquery.com/jquery-1.11.3.min.js" type="text/javascript"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.min.js" type="text/javascript"></script>
<link href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" rel="stylesheet" />
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>

<!-- Optional custom library to enable 'taphold' events -->
<script src="jquery-taphold/taphold.js" type="text/javascript"></script>

<!-- Just for this demo: Custom library to add a dynamic themeroller switcher -->
<script type="text/javascript" src="../lib/Super-Theme-Switcher/jquery.themeswitcher.js"></script>
<script src="../lib/Super-Theme-Switcher/jquery.themeswitcher.js"></script>

<!-- Finally this plugin itself -->
<script src="../jquery.ui-contextmenu.js" type="text/javascript"></script>
<script src="../jquery.ui-contextmenu.js"></script>

<style type="text/css">

Expand Down Expand Up @@ -82,6 +82,7 @@
preventSelect: true,
taphold: true,
menu: [
{title: "Menu Header", cmd: "cat1", isHeader: true},
{title: "Cut <kbd>Ctrl+X</kbd>", cmd: "cut", uiIcon: "ui-icon-scissors"},
{title: "Copy <kbd>Ctrl+C</kbd>", cmd: "copy", uiIcon: "ui-icon-copy"},
{title: "Paste <kbd>Ctrl+V</kbd>", cmd: "paste", uiIcon: "ui-icon-clipboard", disabled: true },
Expand Down

0 comments on commit fa53852

Please sign in to comment.