Skip to content

Commit 85348ee

Browse files
committed
Menubar/Popup: Remove both to streamline the 1.9 release. Will revert this delete on the menubar branch, while development on master can continue without them.
1 parent f0007ec commit 85348ee

16 files changed

+22
-1384
lines changed

demos/index.html

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
<script src="../ui/jquery.ui.draggable.js"></script>
2121
<script src="../ui/jquery.ui.droppable.js"></script>
2222
<script src="../ui/jquery.ui.menu.js"></script>
23-
<script src="../ui/jquery.ui.menubar.js"></script>
24-
<script src="../ui/jquery.ui.popup.js"></script>
2523
<script src="../ui/jquery.ui.position.js"></script>
2624
<script src="../ui/jquery.ui.progressbar.js"></script>
2725
<script src="../ui/jquery.ui.resizable.js"></script>
@@ -111,28 +109,28 @@
111109
<script src="../ui/i18n/jquery.ui.datepicker-zh-TW.js"></script>
112110
<script>
113111
$(function() {
114-
112+
115113
$('.left-nav a').click(function(ev) {
116114
window.location.hash = this.href.replace(/.+\/([^\/]+)\/index\.html/,'$1') + '|default';
117115
loadPage(this.href);
118116
$('.left-nav a.selected').removeClass('selected');
119117
$(this).addClass('selected');
120118
ev.preventDefault();
121119
});
122-
120+
123121
if (window.location.hash) {
124122
if (window.location.hash.indexOf('|') === -1) {
125-
window.location.hash += '|default';
126-
}
123+
window.location.hash += '|default';
124+
}
127125
var path = window.location.href.replace(/(index\.html)?#/,'');
128126
path = path.replace('\|','/') + '.html';
129127
loadPage(path);
130-
}
128+
}
131129

132-
function loadPage(path) {
130+
function loadPage(path) {
133131
var section = path.replace(/\/[^\/]+\.html/,'');
134132
var header = section.replace(/.+\/([^\/]+)/,'$1').replace(/_/, ' ');
135-
133+
136134
$('td.normal div.normal')
137135
.empty()
138136
.append('<h4 class="demo-subheader">Functional demo:</h4>')
@@ -148,7 +146,7 @@
148146
$(this).click(function() {
149147

150148
resetDemos();
151-
149+
152150
$(this).parents('ul').find('li').removeClass('demo-config-on');
153151
$(this).parent().addClass('demo-config-on');
154152
$('#demo-notes').fadeOut();
@@ -167,8 +165,8 @@
167165
$('#demo-config-menu a').each(function(){
168166
if (this.href.indexOf(demo + '.html') !== -1) {
169167
$(this).parents('ul').find('li').removeClass('demo-config-on');
170-
$(this).parent().addClass('demo-config-on');
171-
loadDemo(this.href);
168+
$(this).parent().addClass('demo-config-on');
169+
loadDemo(this.href);
172170
}
173171
});
174172
}
@@ -184,10 +182,10 @@
184182
.end()
185183
.end()
186184
;
187-
185+
188186
resetDemos();
189187
}
190-
188+
191189
function loadDemo(path) {
192190
var directory = path.match(/([^\/]+)\/[^\/\.]+\.html$/)[1];
193191
$.get(path, function(data) {
@@ -207,7 +205,7 @@
207205
$('#demo-link a').attr('href', path);
208206
updateDemoNotes();
209207
updateDemoSource(source);
210-
208+
211209
if (/default.html$/.test(path)) {
212210
$.get("documentation/docs-" + path.match(/demos\/(.+)\//)[1] + ".html", function(html) {
213211
$("#demo-source").after(html);
@@ -241,7 +239,7 @@
241239
$('#demo-notes').show();
242240
notes.hide();
243241
}
244-
242+
245243
function updateDemoSource(source) {
246244
if ($('#demo-source').length == 0) {
247245
$('<div id="demo-source"><a href="#" class="source-closed">View Source</a><div><pre><code></code></pre></div></div>').insertAfter('#demo-notes');
@@ -257,12 +255,12 @@
257255

258256
$('#demo-source code').empty().text(cleanedSource);
259257
}
260-
258+
261259
function resetDemos() {
262260
$.datepicker.setDefaults($.extend({showMonthAfterYear: false}, $.datepicker.regional['']));
263-
$(".ui-dialog-content").remove();
261+
$(".ui-dialog-content").remove();
264262
}
265-
263+
266264
});
267265
</script>
268266
</head>
@@ -285,8 +283,6 @@
285283
<dd><a href="datepicker/index.html">Datepicker</a></dd>
286284
<dd><a href="dialog/index.html">Dialog</a></dd>
287285
<dd><a href="menu/index.html">Menu</a></dd>
288-
<dd><a href="menubar/index.html">Menubar</a></dd>
289-
<dd><a href="popup/index.html">Popup</a></dd>
290286
<dd><a href="progressbar/index.html">Progressbar</a></dd>
291287
<dd><a href="slider/index.html">Slider</a></dd>
292288
<dd><a href="spinner/index.html">Spinner</a></dd>
@@ -307,7 +303,7 @@
307303
<dd><a href="widget/index.html">Widget</a></dd>
308304
<dt>About jQuery UI</dt>
309305
<dd><a href="http://jqueryui.com/docs/Getting_Started">Getting Started</a></dd>
310-
<dd><a href="http://jqueryui.com/docs/Upgrade_Guide">Upgrade Guide</a></dd>
306+
<dd><a href="http://jqueryui.com/docs/Upgrade_Guide">Upgrade Guide</a></dd>
311307
<dd><a href="http://jqueryui.com/docs/Changelog">Changelog</a></dd>
312308
<dd><a href="http://jqueryui.com/docs/Roadmap">Roadmap</a></dd>
313309
<dd><a href="http://jqueryui.com/docs/Subversion">Subversion Access</a></dd>
@@ -328,7 +324,7 @@ <h3>Instructions</h3>
328324
<p>
329325
These demos showcase some common uses of each jQuery UI plugin. Simply copy and paste code from the demos to get started. Have fun playing with them.
330326
</p>
331-
327+
332328
</div>
333329

334330
</td>

demos/menu/contextmenu.html

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)