File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -374,15 +374,17 @@ apf.button = function(struct, tagName){
374374 if ( ! menuPressed || menuPressed == this )
375375 return ;
376376
377+ var menu = self [ this . submenu ] ;
378+ if ( menu . getAttribute ( 'pinned' ) )
379+ return ;
380+
377381 menuPressed . setValue ( false ) ;
378382 var oldMenu = self [ menuPressed . submenu ] ;
379383 oldMenu . $propHandlers [ "visible" ] . call ( oldMenu , false , true ) ; //.hide();
380384
381385 this . setValue ( true ) ;
382386 this . parentNode . menuIsPressed = this ;
383387
384- var menu = self [ this . submenu ] ;
385-
386388 //#ifdef __DEBUG
387389 if ( ! menu ) {
388390 throw new Error ( apf . formatErrorString ( 0 , this ,
@@ -511,7 +513,7 @@ apf.button = function(struct, tagName){
511513 if ( strEvent && this . dispatchEvent ( strEvent , { htmlEvent : e } ) === false )
512514 return ;
513515
514- if ( parentNode . $button2 && parentNode . $button2 . value && ! this . submenu )
516+ if ( parentNode && parentNode . $button2 && parentNode . $button2 . value && ! this . submenu )
515517 return ;
516518
517519 this . $doBgSwitch ( this . states [ state ] ) ;
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ apf.rest = function(){
9898 apf . console . log ( "Found method " + options [ "http-method" ] + ". Taking body from last argument" ) ;
9999 //#endif
100100
101- var body = "NOTIFY|SEND|POST|PUT" . indexOf ( options [ "http-method" ] ) > - 1 ? args . pop ( ) : "" ,
101+ var body = "NOTIFY|SEND|POST|PUT" . indexOf ( options [ "http-method" ] . toUpperCase ( ) ) > - 1 ? args . pop ( ) : "" ,
102102 url ;
103103
104104 this . method = options [ "http-method" ] ;
You can’t perform that action at this time.
0 commit comments