Permalink
Browse files

module.js: if its a new media set initial values for hidden fields to…

… 0,0 (otherwise they are 'Position X' and 'Position Y').
  • Loading branch information...
1 parent 6dcec5b commit 7cb6dad971f43cb00bf9ce611a63a05ef23833b6 John committed Dec 28, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 module.js
View
@@ -24,6 +24,8 @@ M.local_slideshow = {
this.mediaOutline.setXY([this.slide.get("region").left + x, this.slide.get("region").top + y]);
}
else {
+ this.Y.one("input[name=mediaX]").set("value", "0");
+ this.Y.one("input[name=mediaY]").set("value", "0");
this.mediaOutline.setXY([this.slide.get("region").left, this.slide.get("region").top]);
}

0 comments on commit 7cb6dad

Please sign in to comment.