|
@@ -169,16 +169,18 @@ IPE.app = {
|
|
|
$resolutionLinks.on('click', 'a', function(e) {
|
|
|
e.preventDefault();
|
|
|
e.stopPropagation();
|
|
|
+ var $this = $(this);
|
|
|
|
|
|
- if($(this).attr('href') == undefined) {
|
|
|
+ if($this.attr('href') == undefined) {
|
|
|
return false;
|
|
|
}
|
|
|
- requestedSize = $(this).attr('data');
|
|
|
+ requestedSize = $this.attr('data');
|
|
|
|
|
|
$('.res-link').each(function(index, value) {
|
|
|
- $(value).attr('href', '#');
|
|
|
+ var $value = $(value);
|
|
|
+ $value.attr('href', '#');
|
|
|
});
|
|
|
- $(this).removeAttr('href');
|
|
|
+ $this.removeAttr('href');
|
|
|
|
|
|
$.ajax({
|
|
|
// todo test after remove of sync flag
|
|
@@ -233,8 +235,6 @@ IPE.app = {
|
|
|
hideBottomControlsContainer();
|
|
|
});
|
|
|
|
|
|
-
|
|
|
-
|
|
|
$('div#menu-buttons-small-devices input').on('click', function() {
|
|
|
var $this = $(this),
|
|
|
target = $this.attr('data'),
|
|
@@ -247,7 +247,6 @@ IPE.app = {
|
|
|
$overlay.show();
|
|
|
});
|
|
|
|
|
|
-
|
|
|
$('input#hide-content-small-devices').on('click', function() {
|
|
|
var $overlay = $('div#overlay-small-devices'),
|
|
|
$content = $('div#content-small-devices'),
|
|
@@ -897,6 +896,7 @@ function hideBottomControlsContainer() {
|
|
|
}
|
|
|
|
|
|
function addResolutionLinks() {
|
|
|
+ console.log('addResolutionLinks');
|
|
|
$resSpan.text(config.defaultSize);
|
|
|
textureSizes = config.textureSizes;
|
|
|
textureSizes.forEach(function(size) {
|