Package: jqueryui / 1.12.1+dfsg-3

use_system_files_in_examples.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
Description: The upstream examples don't use the Debian installed versions of
 files and the Debian packaging doesn't work with the provided relative
 paths. This patch makes the examples use the system-wide files. (Most required
 changes are done via sed commands in debian/rules).
Author: Paul Gevers <elbrus@debian.org>
Forwarded: not-needed

Index: jqueryui/demos/effect/removeClass.html
===================================================================
--- jqueryui.orig/demos/effect/removeClass.html
+++ jqueryui/demos/effect/removeClass.html
@@ -5,8 +5,8 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>jQuery UI Effects - removeClass Demo</title>
 	<link rel="stylesheet" href="../../themes/base/all.css">
-	<script src="../../external/jquery/jquery.js"></script>
-	<script src="../../ui/effect.js"></script>
+	<script src="/usr/share/javascript/jquery/jquery.js"></script>
+	<script src="/usr/share/javascript/jquery-ui/ui/effect.js"></script>
 	<link rel="stylesheet" href="../demos.css">
 	<style>
 	.toggler { width: 500px; height: 200px; position: relative; }
Index: jqueryui/demos/slider/multiple-vertical.html
===================================================================
--- jqueryui.orig/demos/slider/multiple-vertical.html
+++ jqueryui/demos/slider/multiple-vertical.html
@@ -5,11 +5,11 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>jQuery UI Slider - Multiple sliders</title>
 	<link rel="stylesheet" href="../../themes/base/all.css">
-	<script src="../../external/jquery/jquery.js"></script>
-	<script src="../../ui/core.js"></script>
-	<script src="../../ui/widget.js"></script>
-	<script src="../../ui/mouse.js"></script>
-	<script src="../../ui/slider.js"></script>
+	<script src="/usr/share/javascript/jquery/jquery.js"></script>
+	<script src="/usr/share/javascript/jquery-ui/ui/core.js"></script>
+	<script src="/usr/share/javascript/jquery-ui/ui/widget.js"></script>
+	<script src="/usr/share/javascript/jquery-ui/ui/mouse.js"></script>
+	<script src="/usr/share/javascript/jquery-ui/ui/slider.js"></script>
 	<link rel="stylesheet" href="../demos.css">
 	<style>
 	#eq > span {
Index: jqueryui/demos/tooltip/custom-style.html
===================================================================
--- jqueryui.orig/demos/tooltip/custom-style.html
+++ jqueryui/demos/tooltip/custom-style.html
@@ -4,7 +4,7 @@
 	<meta charset="utf-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>jQuery UI Tooltip - Custom Styling</title>
-	<link rel="stylesheet" href="../../themes/base/tooltip.css">
+	<link rel="stylesheet" href="/usr/share/javascript/jquery-ui/css/base/tooltip.css">
 	<link rel="stylesheet" href="../demos.css">
 	<script src="../../external/requirejs/require.js"></script>
 	<script src="../bootstrap.js">
Index: jqueryui/demos/bootstrap.js
===================================================================
--- jqueryui.orig/demos/bootstrap.js
+++ jqueryui/demos/bootstrap.js
@@ -78,15 +78,10 @@ function fixPaths( modules ) {
 document.documentElement.className = "demo-loading";
 
 require.config( {
-	baseUrl: window.location.pathname.indexOf( "demos/" ) !== -1 ? "../../ui" : "../../../ui",
+	baseUrl: "/usr/share/javascript/jquery-ui/ui",
 	paths: {
-		jquery: "../external/jquery/jquery",
-		external: "../external/"
+		jquery: "/usr/share/javascript/jquery/jquery",
 	},
-	shim: {
-		"external/globalize/globalize.culture.de-DE": [ "external/globalize/globalize" ],
-		"external/globalize/globalize.culture.ja-JP": [ "external/globalize/globalize" ]
-	}
 } );
 
 // Replace effects all shortcut modules with all the effects modules
Index: jqueryui/demos/spinner/default.html
===================================================================
--- jqueryui.orig/demos/spinner/default.html
+++ jqueryui/demos/spinner/default.html
@@ -7,7 +7,7 @@
 	<link rel="stylesheet" href="../../themes/base/all.css">
 	<link rel="stylesheet" href="../demos.css">
 	<script src="../../external/requirejs/require.js"></script>
-	<script src="../bootstrap.js" data-modules="external/jquery-mousewheel/jquery.mousewheel">
+	<script src="../bootstrap.js" data-modules="/usr/share/javascript/jquery-mousewheel/jquery.mousewheel.js">
 		var spinner = $( "#spinner" ).spinner();
 
 		$( "#disable" ).on( "click", function() {
Index: jqueryui/demos/spinner/latlong.html
===================================================================
--- jqueryui.orig/demos/spinner/latlong.html
+++ jqueryui/demos/spinner/latlong.html
@@ -8,7 +8,7 @@
 	<link rel="stylesheet" href="../demos.css">
 	<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
 	<script src="../../external/requirejs/require.js"></script>
-	<script src="../bootstrap.js" data-modules="external/jquery-mousewheel/jquery.mousewheel">
+	<script src="../bootstrap.js" data-modules="/usr/share/javascript/jquery-mousewheel/jquery.mousewheel.js">
 		function latlong() {
 			return new google.maps.LatLng( $("#lat").val(), $("#lng").val() );
 		}
Index: jqueryui/demos/spinner/overflow.html
===================================================================
--- jqueryui.orig/demos/spinner/overflow.html
+++ jqueryui/demos/spinner/overflow.html
@@ -7,7 +7,7 @@
 	<link rel="stylesheet" href="../../themes/base/all.css">
 	<link rel="stylesheet" href="../demos.css">
 	<script src="../../external/requirejs/require.js"></script>
-	<script src="../bootstrap.js" data-modules="external/jquery-mousewheel/jquery.mousewheel">
+	<script src="../bootstrap.js" data-modules="/usr/share/javascript/jquery-mousewheel/jquery.mousewheel.js">
 		$( "#spinner" ).spinner({
 			spin: function( event, ui ) {
 				if ( ui.value > 10 ) {