nestene 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa9f71edf16482fe6707c20f9e3fd600f13b2c8c
4
- data.tar.gz: f24fe63fceed837433582f04af7d6cf0b40adcc2
3
+ metadata.gz: facb710eaed00cad18394e4f33e88e7415b4a011
4
+ data.tar.gz: 1cf8975444de2dd5856fcf5a6b38184f8062ca23
5
5
  SHA512:
6
- metadata.gz: db1c7efb6ae1314420a342e5c00769df6b951ff5720004bc2034bf35d3897c508b1524558b7f572109e725c8050c98d213dc5eff7abe91a30fddcb8209aac2fe
7
- data.tar.gz: 5e7f3c0cdd9ed88d7995a74555f6183ea125338985f144b6ee5f22c0d001963ff5dd0d1ac5b599ec63e450c44e18e3983516dec7715c99b63d1d08fcc57131a4
6
+ metadata.gz: 0e3cc0fd36d888de1aaa58206bc0d2fa5715035a6242a815664a242f79ff6b91e77e40690b0784e8feee0ad49a9b2905c541554673f609e1cdc525d17ad2f574
7
+ data.tar.gz: 299a41329592441bf4808db484f81759b406911b73a960678ca394aa0fe7fc71973e4663ef0b2b24197574f8eb466d697ee91139671001a9d93b292ff3ebc04d
@@ -1,15 +1,13 @@
1
- var nestene = angular.module('nestene', ['JSONedit']).config(function($locationProvider) {
2
- $locationProvider.html5Mode({
3
- enabled: true,
4
- requireBase: false
5
- });
6
- });
1
+ var window_location = window.location.pathname
2
+
3
+
4
+ var nestene = angular.module('nestene', ['JSONedit']);
7
5
 
8
- nestene.controller('AutonsController', function($scope, $http, $timeout, $location) {
6
+ nestene.controller('AutonsController', function($scope, $http, $timeout) {
9
7
  $scope.autons=[];
10
8
 
11
9
  $scope.getAutons = function() {
12
- var autonsPromise = $http.get($location.path() + "autons.json");
10
+ var autonsPromise = $http.get(window_location + "autons.json");
13
11
  autonsPromise.success(function(data, status, headers, config) {
14
12
  $scope.autons = data;
15
13
  });
@@ -30,10 +28,10 @@ nestene.controller('AutonsController', function($scope, $http, $timeout, $locat
30
28
 
31
29
  });
32
30
 
33
- nestene.controller('CreateAutonFormController', function($scope,$http, $location) {
31
+ nestene.controller('CreateAutonFormController', function($scope,$http) {
34
32
  $scope.autonType = '';
35
33
  $scope.createAuton = function() {
36
- var postPromise = $http.post($location.path() + "autons",{auton_type: $scope.autonType});
34
+ var postPromise = $http.post(window_location + "autons",{auton_type: $scope.autonType});
37
35
  postPromise.success(function(data, status, headers, config) {
38
36
  $.bootstrapGrowl("Created "+data['auton_id'], { type: 'success' });
39
37
  });
@@ -43,13 +41,13 @@ nestene.controller('CreateAutonFormController', function($scope,$http, $location
43
41
  };
44
42
  });
45
43
 
46
- nestene.controller('CredentialsController', function($scope,$http, $location) {
44
+ nestene.controller('CredentialsController', function($scope,$http) {
47
45
  $scope.credentials={};
48
46
  $scope.loaded = false;
49
47
 
50
48
 
51
49
  $scope.loadCredentials = function() {
52
- var getPromise = $http.get($location.path() + "credentials");
50
+ var getPromise = $http.get(window_location + "credentials");
53
51
  getPromise.success(function(data, status, headers, config) {
54
52
  $scope.credentials = data;
55
53
  $scope.loaded = true;
@@ -63,7 +61,7 @@ nestene.controller('CredentialsController', function($scope,$http, $location) {
63
61
  $scope.loadCredentials();
64
62
 
65
63
  $scope.storeCredentials = function() {
66
- var postPromise = $http.post($location.path() + "credentials",$scope.credentials);
64
+ var postPromise = $http.post(window_location + "credentials",$scope.credentials);
67
65
  postPromise.success(function(data, status, headers, config) {
68
66
  $.bootstrapGrowl("Credentials saved", { type: 'success' });
69
67
  });
@@ -1,3 +1,3 @@
1
1
  module Nestene
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nestene
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dragan Milic