- <div class="md-modal md-effect-7" id="modal-7">
- <div class="md-content">
- <div>
- <h3>Upload A Logo</h3>
- <div>
- <form method="get" action="upload.php" class="dropzone" id="my-awesome-dropzone">
- <div class="uploadInstruct"></div>
- </form>
- <div class="uploadedCon dropzone">
- <div class="dz-preview dz-processing dz-image-preview dz-success" ng-repeat="uImg in uImgs">
- <div data-dz-thumbnail style="background-image: url();">{{uImg.src}}</div>
- </div>
- </div>
- <button ng-click="checkEnter(-1)" class="md-close">Go</button>
- </div>
- </div>
- </div>
- </div>
- logoControllers.controller('editCtrl', ['$scope', 'Shifts', '$routeParams', '$rootScope', '$compile', '$timeout',
- function($scope, Shifts, $routeParams, $rootScope, $compile, $timeout) {
- $scope.cMP = $rootScope.cMP;
- $scope.uImgs = [];
- console.log($('.md-modal'));
- $('.md-modal').addClass('md-show');
- console.log($rootScope.pName);
- console.log($('#my-awesome-dropzone'));
- console.log();
- $timeout(function(){
- console.log($('#my-awesome-dropzone'));
- if ($('#my-awesome-dropzone').length) {
- var myAwesomeDropzone = new Dropzone("#my-awesome-dropzone");
- myAwesomeDropzone.on("addedfile", function(file) {
- /* Maybe display some more file information on your page */
- $scope.uImgs.push({name: file.name, status: file.status, width: file.width, height: file.height});
- console.log($scope);
- console.log('fileadd');
- console.log($scope.uImgs);
- });
- }
- },500);
- }]);
SHARE
TWEET
App Template
a guest
Dec 22nd, 2014
5
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

