فهرست منبع

HUE-110. Add support for disabled art buttons

Aaron Newton 15 سال پیش
والد
کامیت
98d13c808b
3فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 4 0
      desktop/core/static/css/shared.css
  2. 1 1
      desktop/core/static/js/Source/CCS/CCS.JFrame.js
  3. 1 1
      ext/thirdparty/js/art-widgets.hash

+ 4 - 0
desktop/core/static/css/shared.css

@@ -18,6 +18,10 @@
 .ccs-shared .jframe_ignore a {
 	text-decoration: none;
 }
+.ccs-shared a.disabled {
+	text-decoration: none;
+	color: #000;
+}
 .ccs-shared a:hover {
 	text-decoration: underline;
 }

+ 1 - 1
desktop/core/static/js/Source/CCS/CCS.JFrame.js

@@ -202,7 +202,7 @@ CCS.JFrame = new Class({
 			//allow links to force jframe to nerf them
 			//this is required for doubleclick support
 			//as otherwise there's no way to prevent this default jframe handler per link
-			if (elem.hasClass('jframe_ignore')) return e.preventDefault();
+			if (elem.hasClass('jframe_ignore') || elem.hasClass('disabled')) return e.preventDefault();
 			// Fix relative links
 			if (elem.get('href')) {
 				var url = new URI(elem.get('href'), {base: this.currentPath});

+ 1 - 1
ext/thirdparty/js/art-widgets.hash

@@ -1 +1 @@
-e5b6bc7e0558480f5f111cadbeacfe430b565d1d
+aafaf55d99cf92d1f445b5babc6a901939efce06