瀏覽代碼

Fixed issue with protocols in the Browser

Nicolas Petton 12 年之前
父節點
當前提交
754d8d685f
共有 3 個文件被更改,包括 662 次插入711 次删除
  1. 328 355
      js/IDE.deploy.js
  2. 328 355
      js/IDE.js
  3. 6 1
      st/IDE.st

文件差異過大導致無法顯示
+ 328 - 355
js/IDE.deploy.js


文件差異過大導致無法顯示
+ 328 - 355
js/IDE.js


+ 6 - 1
st/IDE.st

@@ -1174,6 +1174,8 @@ updateProtocolsList
 !
 
 updateSourceAndButtons
+	| currentProtocol |
+
 	self disableSaveButton.
 	classButtons contents: [:html |
 		html button
@@ -1206,9 +1208,12 @@ updateSourceAndButtons
 				html option
 					class: 'important';
 					with: 'New...'.
+                currentProtocol := selectedProtocol.
+                (currentProtocol isNil and: [ selectedMethod notNil ])
+                	ifTrue: [ currentProtocol := selectedMethod category].
 				self protocols do: [:each |
 					option := html option with: each.
-					selectedProtocol = each ifTrue: [ option at: 'selected' put: 'selected' ] ]].
+					currentProtocol = each ifTrue: [ option at: 'selected' put: 'selected' ] ]].
 		selectedMethod isNil ifFalse: [
 			referencesSelect := html select.
                         referencesSelect

部分文件因文件數量過多而無法顯示