SHARE
TWEET

App Template

a guest Dec 22nd, 2014 5 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div class="md-modal md-effect-7" id="modal-7">
  2.         <div class="md-content">
  3.                 <div>
  4.                         <h3>Upload A Logo</h3>
  5.                         <div>
  6.                                 <form method="get" action="upload.php" class="dropzone" id="my-awesome-dropzone">
  7.                                         <div class="uploadInstruct"></div>
  8.                                 </form>
  9.                                 <div class="uploadedCon dropzone">
  10.                                         <div class="dz-preview dz-processing dz-image-preview dz-success" ng-repeat="uImg in uImgs">
  11.                                                 <div data-dz-thumbnail style="background-image: url();">{{uImg.src}}</div>
  12.                                         </div>
  13.                                 </div>
  14.                                 <button ng-click="checkEnter(-1)" class="md-close">Go</button>
  15.                         </div>
  16.                 </div>
  17.         </div>
  18. </div>
  19.  
  20.  
  21.  
  22.  
  23.  
  24. logoControllers.controller('editCtrl', ['$scope', 'Shifts', '$routeParams', '$rootScope', '$compile', '$timeout',
  25.   function($scope, Shifts, $routeParams, $rootScope, $compile, $timeout) {
  26.   $scope.cMP = $rootScope.cMP;
  27.   $scope.uImgs = [];
  28.   console.log($('.md-modal'));
  29.   $('.md-modal').addClass('md-show');
  30.  
  31.  
  32.  
  33.  
  34.  
  35.   console.log($rootScope.pName);
  36.                 console.log($('#my-awesome-dropzone'));
  37.                 console.log();
  38.                
  39.                 $timeout(function(){
  40.                         console.log($('#my-awesome-dropzone'));
  41.                         if ($('#my-awesome-dropzone').length) {
  42.                                 var myAwesomeDropzone = new Dropzone("#my-awesome-dropzone");
  43.                                 myAwesomeDropzone.on("addedfile", function(file) {
  44.                                         /* Maybe display some more file information on your page */
  45.                                         $scope.uImgs.push({name: file.name, status: file.status, width: file.width, height: file.height});
  46.                                         console.log($scope);
  47.                                         console.log('fileadd');
  48.                                         console.log($scope.uImgs);
  49.                                 });
  50.                         }
  51.                 },500);
  52.     }]);
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. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top