Skip to content

Commit 35eb070

Browse files
committed
Merge branch 'master' of github.com:ajaxorg/apf
2 parents 8d86768 + d7866fa commit 35eb070

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

elements/button.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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]);

elements/rpc/rest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"];

0 commit comments

Comments
 (0)