Sha256: acb56d97c1cada6967ee37021308428593cc1c5db5764b1f359c4412185ea5c8

Contents?: true

Size: 1.38 KB

Versions: 1

Compression:

Stored size: 1.38 KB

Contents

I"|(function() {
  angular.module("Editor").controller("EditorCtrl", [
    "$scope", "Restangular", function($scope, Restangular) {
      var enabled;
      console.log('EditorCtrl');
      $scope.layouts = [];
      $scope.pages = [];
      $scope.snippets = [];
      $scope.options = drop - (enabled = false);
      $scope.summernotes = {};
      Restangular.one("summernotes").get().then((function(data) {
        console.log(data);
        return $scope.summernotes = data;
      }), function(error) {
        return console.log(error);
      });
      Restangular.one("layouts").get().then((function(data) {
        console.log(data);
        return $scope.layouts = data;
      }), function(error) {
        return console.log(error);
      });
      Restangular.one("pages").get().then((function(data) {
        console.log(data);
        return $scope.pages = data;
      }), function(error) {
        return console.log(error);
      });
      Restangular.one("snippets").get().then((function(data) {
        console.log(data);
        return $scope.snippets = data;
      }), function(error) {
        return console.log(error);
      });
      return $scope.onSave = function() {
        return $scope.summernotes.put().then((function(data) {
          return console.log(data);
        }), function(error) {
          return console.log(error);
        });
      };
    }
  ]);

}).call(this);
:ET

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sedge_cms-0.0.1 test/dummy/tmp/cache/assets/development/sprockets/v3.0/Jk3-AMVLgUThXlllqe0SzX9Av2Gj5J3HYV-X1awY9T8.cache