Forráskód Böngészése

Fixed issue with protocols in the Browser

Nicolas Petton 12 éve
szülő
commit
754d8d685f
3 módosított fájl, 662 hozzáadás és 711 törlés
  1. 328 355
      js/IDE.deploy.js
  2. 328 355
      js/IDE.js
  3. 6 1
      st/IDE.st

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 328 - 355
js/IDE.deploy.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 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

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott