Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kostat committed Jan 21, 2016
1 parent d45fd75 commit 1495cf5
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI.Client/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"tasks": [
{
"taskName": "build-dev",
"args": [],
"args": ["--apibaseurl=http://localhost:39246/configuration/dev/"],
"isBuildCommand": true,
"isWatching": false,
"problemMatcher": [
Expand All @@ -16,7 +16,7 @@
},
{
"taskName": "build",
"args": ["--minify=true"],
"args": ["--minify=true", "--apibaseurl=../../configuration/dev/"],
"isBuildCommand": false,
"isWatching": false,
"problemMatcher": [
Expand Down
3 changes: 2 additions & 1 deletion src/Umbraco.Web.UI.Client/gruntFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
buildVersion: grunt.option('buildversion') || '7',
minify: grunt.option('minify'), //--minify=true
minify: grunt.option('minify'), //see tasks.json
apibaseurl: grunt.option('apibaseurl'),
connect: {
devserver: {
options: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ angular.module('umbraco.mocks').
//by default we will perform authorization
var doAuth = true;
var _compilation = null;
var remoteBaseUrl = "http://localhost:39246/configuration/dev/";
var remoteBaseUrl = API_BASE_URL;

var compile = function() {
return $.ajax({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ function runResource($q, $http, umbDataFormatter, umbRequestHelper) {
"Test",
[
{ seconds: seconds }
]));
])).then(function(r) {
return r.data;
});
}
};
}
Expand Down
1 change: 0 additions & 1 deletion src/Umbraco.Web.UI.Client/src/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<!doctype html>
<html lang="en">
<head>
<base href="/belle/" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

Expand Down
4 changes: 3 additions & 1 deletion src/Umbraco.Web.UI.Client/src/loader.dev.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
var API_BASE_URL = '<%= apibaseurl%>';

(function() {

var deps = [
Expand Down Expand Up @@ -54,7 +56,7 @@ var deps = [

var min = '<%= minify%>';

deps.splice.apply(deps, [-2, 0].concat(min ? umbMinDeps : umbFullDeps));
deps.push.apply(deps, (min ? umbMinDeps : umbFullDeps));

LazyLoad.js(
deps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ function readOnlyListViewController($scope, $injector) {
}
if (runId) {
$scope.listViewResultSet = null;
$scope.pagination = [];
unsubscribe = contentResource.pollChildren($scope, "add-results", config.contentId, runId)
}
}
Expand Down

0 comments on commit 1495cf5

Please sign in to comment.