Эх сурвалжийг харах

HUE-99. Application buttons in menu appear in different orders in different browsers

Aaron T. Myers 15 жил өмнө
parent
commit
f64e23e396

+ 2 - 2
desktop/core/static/js/Source/CCS/CCS.Dock.js

@@ -89,8 +89,8 @@ CCS.Dock = {
 		lnk.inject(dock);
 		// Sort the menu.
 		var sortkey = function(a_left, a_right) {
-			var left = a_left.getElement('img').get('title');
-			var right = a_right.getElement('img').get('title');
+			var left = a_left.get('id');
+			var right = a_right.get('id');
 			return (left == right) ? 0 : (left < right) ? -1 : 1;
 		};
 		dock.getChildren().sort(sortkey).inject(dock);