Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Subash committed Dec 17, 2013
1 parent d9733f2 commit 3d455c8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 26 deletions.
7 changes: 2 additions & 5 deletions application/app/scripts/controllers/MainCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ prepros.controller('MainCtrl', [

$scope.$on('$routeChangeSuccess', function () {

if ($scope.multiSelect.pid !== $routeParams.pid || $scope.routeSubPath !== $route.current.subPath || $scope.routePath !== $route.current.path) {
if ($scope.multiSelect.pid !== $routeParams.pid || $scope.routePath !== $route.current.path) {

$scope.multiSelect.id = "";
$scope.multiSelect.files = {};
Expand Down Expand Up @@ -239,10 +239,7 @@ prepros.controller('MainCtrl', [

$scope.addMultiSelectFile = function (pid, fid) {


var subPath = $scope.routeSubPath ? $scope.routeSubPath.toLowerCase() : 'files';

$location.path('/' + subPath + '/' + pid); //Redirect to files list view
$location.path('/files/' + pid); //Redirect to files list view

$scope.multiSelect.pid = pid;

Expand Down
2 changes: 1 addition & 1 deletion application/app/scripts/controllers/ProjectCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ prepros.controller('ProjectCtrl', [

$scope.openRemoteInspect = function () {

liveServer.openRemoteInspect();
pro.showMessage();
};

$scope.optimizeAllImages = function (pid) {
Expand Down
6 changes: 3 additions & 3 deletions application/app/scripts/directives/file-context-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ prepros.directive('fileContextMenu', [

} else {

if (!Prepros.IS_PRO) return pro.showMessage();
pro.showMessage();

}
}
Expand All @@ -119,7 +119,7 @@ prepros.directive('fileContextMenu', [

} else {

if (!Prepros.IS_PRO) return pro.showMessage();
pro.showMessage();
}
}
}));
Expand All @@ -146,7 +146,7 @@ prepros.directive('fileContextMenu', [

} else {

if (!Prepros.IS_PRO) return pro.showMessage();
pro.showMessage();
}
}
});
Expand Down
19 changes: 3 additions & 16 deletions application/app/scripts/directives/image-context-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ prepros.directive('imageContextMenu', [

} else {

if (!Prepros.IS_PRO) return pro.showMessage();
pro.showMessage();

}
}
Expand All @@ -56,15 +56,7 @@ prepros.directive('imageContextMenu', [

} else {

if (!Prepros.IS_PRO) return pro.showMessage();

_.each(scope.multiSelect.images, function (i) {

scope.$apply(function () {
scope.optimizeImage(i.pid, i.id);
});

})
pro.showMessage();

}
}
Expand All @@ -82,12 +74,7 @@ prepros.directive('imageContextMenu', [

} else {

if (!Prepros.IS_PRO) return pro.showMessage();

_.each(scope.multiSelect.images, function (i) {

scope.showImageInFolder(i.pid, i.id);
})
pro.showMessage();

}
}
Expand Down
2 changes: 1 addition & 1 deletion chrome-extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Prepros",
"version": "3.0.0",
"version": "4.0.0",
"manifest_version": 2,
"description": "Live refresh extension for Prepros App",
"permissions": ["tabs", "<all_urls>"],
Expand Down

0 comments on commit 3d455c8

Please sign in to comment.