Spaces:
Running
Running
Update wps-test/js/ribbon.js
Browse files- wps-test/js/ribbon.js +6 -1
wps-test/js/ribbon.js
CHANGED
@@ -34,7 +34,8 @@ function OnAction(control) {
|
|
34 |
wps.PluginStorage.setItem("EnableFlag", !bFlag)
|
35 |
wps.ribbonUI.InvalidateControl("btnIsEnbable")
|
36 |
wps.ribbonUI.InvalidateControl("btnShowcx")
|
37 |
-
wps.ribbonUI.InvalidateControl("btnShowcx2")
|
|
|
38 |
break
|
39 |
}
|
40 |
case "btnShowcx":
|
@@ -42,6 +43,8 @@ function OnAction(control) {
|
|
42 |
break
|
43 |
case "btnShowcx2":
|
44 |
wps.ShowDialog(GetUrlPath() + "/ui/chartjs.html", "调用网页对话框", 400 * window.devicePixelRatio, 400 * window.devicePixelRatio, false)
|
|
|
|
|
45 |
break
|
46 |
default:
|
47 |
break
|
@@ -60,6 +63,8 @@ function GetImage(control) {
|
|
60 |
return "images/M.svg"
|
61 |
case "btnShowcx2":
|
62 |
return "images/M.svg"
|
|
|
|
|
63 |
default:
|
64 |
;
|
65 |
}
|
|
|
34 |
wps.PluginStorage.setItem("EnableFlag", !bFlag)
|
35 |
wps.ribbonUI.InvalidateControl("btnIsEnbable")
|
36 |
wps.ribbonUI.InvalidateControl("btnShowcx")
|
37 |
+
wps.ribbonUI.InvalidateControl("btnShowcx2")
|
38 |
+
wps.ribbonUI.InvalidateControl("btnShowcx3")
|
39 |
break
|
40 |
}
|
41 |
case "btnShowcx":
|
|
|
43 |
break
|
44 |
case "btnShowcx2":
|
45 |
wps.ShowDialog(GetUrlPath() + "/ui/chartjs.html", "调用网页对话框", 400 * window.devicePixelRatio, 400 * window.devicePixelRatio, false)
|
46 |
+
case "btnShowcx3":
|
47 |
+
wps.ShowDialog(GetUrlPath() + "/ui/chartjs2.html", "调用网页对话框", 400 * window.devicePixelRatio, 400 * window.devicePixelRatio, false)
|
48 |
break
|
49 |
default:
|
50 |
break
|
|
|
63 |
return "images/M.svg"
|
64 |
case "btnShowcx2":
|
65 |
return "images/M.svg"
|
66 |
+
case "btnShowcx3":
|
67 |
+
return "images/M.svg"
|
68 |
default:
|
69 |
;
|
70 |
}
|