Skip to content

Commit 6190471

Browse files
fix jquery 3.6.0 support
1 parent 58af4fd commit 6190471

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Views/dashboard_list.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166

167167

168168

169-
<script src="<?php echo $path; ?>Modules/dashboard/dashboard.js"></script>
169+
<script src="<?php echo $path; ?>Modules/dashboard/dashboard.js?v=1"></script>
170170
<script src="<?php echo $path; ?>Lib/vue.min.js"></script>
171171
<!-- <script src="/emoncms/Modules/config/vue.js"></script> -->
172172

dashboard.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,10 @@ var dashboard_v2 = {
152152
} else {
153153
jqxhr = $.ajax(settings);
154154
}
155+
155156

156157
// on ajax success check response for error message
157-
jqxhr.success(function(data, status, xhr) {
158+
jqxhr.done(function(data, status, xhr) {
158159
// reject if data has property success set to false
159160
if (!data || data.hasOwnProperty('success') && data.success === false) {
160161
deferred.reject(jqxhr, data.message || 'error');
@@ -164,7 +165,7 @@ var dashboard_v2 = {
164165
});
165166

166167
// on ajax error return rejected promise
167-
jqxhr.error(function(jqXHR, status, error) {
168+
jqxhr.fail(function(jqXHR, status, error) {
168169
deferred.reject(jqXHR, status, error);
169170
});
170171

dashboard_controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function dashboard_controller()
2020
$dashboard = new Dashboard($mysqli);
2121
// id, userid, content, height, name, alias, description, main, public, published, showdescription, fullscreen
2222

23-
$js_css_version = 7;
23+
$js_css_version = 8;
2424

2525
$result = false; $submenu = '';
2626

module.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name" : "Dashboard",
3-
"version" : "2.1.4",
3+
"version" : "2.1.5",
44
"location" : "/var/www/emoncms/Modules",
55
"branches_available": ["stable","master"]
66
}

0 commit comments

Comments
 (0)