Jump to content

nickbro

Members
  • Posts

    4,190
  • Joined

  • Last visited

Everything posted by nickbro

  1. Ok, that's not correct, try this please: this.Start = function() { this.FileName = $("#uploadfilesrandom").is(":checked") ? this.FormatFileName() : this.File.name; console.log(this.FileName); if (this.File.name.indexOf('.') == -1) { alert(hap.common.getLocal("myfiles/upload/folderwarning").replace(/\%/g, this.FileName)); uploads.pop(this); return false; } else if ("<%=AcceptedExtensions %>".toLowerCase().indexOf(this.FileName.substr(this.FileName.lastIndexOf('.')).toLowerCase()) == -1 && "<%=DropZoneAccepted %>" != "") { alert(this.File.name + " " + hap.common.getLocal("myfiles/upload/filetypewarning") + "\n\n <%=AcceptedExtensions %>"); uploads.pop(this); return false; } console.log(this.FileName); if(this.File.size > <%=maxRequestLength%>) { alert(this.File.name + " " + hap.common.getLocal("myfiles/upload/filesizewarning")); uploads.pop(this); return false; } console.log(this.FileName); $("#progresses").append(' ' + this.FileName + ''); $("#upload-" + this.FileName.replace(/[\\'\. \[\]\(\)\-]/g, "_") + " .progressbar").progressbar({ value: 0 }); console.log(this.FileName); console.log(hap.common.formatJSONUrl('~/api/MyFiles/Exists/' + this.Path.replace(/\\/gi, "/").replace(/\.\.\/Download\//gi, "") + '/' + this.FileName)); $.ajax({ type: 'GET', url: hap.common.formatJSONUrl('~/api/MyFiles/Exists/' + this.Path.replace(/\\/gi, "/").replace(/\.\.\/Download\//gi, "") + '/' + this.FileName), dataType: 'json', context: this, contentType: 'application/json', success: function (data) { if (data.Name == null || confirm(hap.common.getLocal("myfiles/upload/fileexists1") + " " + this.FileName + " " + hap.common.getLocal("myfiles/upload/fileexists2"))) this.ContinueUpload(this.FileName); else { $("#upload-" + this.FileName.replace(/[\\'\. \[\]\(\)\-]/g, "_")).remove(); if (uploads.length == 1) $("#uploadprogress").slideUp('slow'); uploads.pop(this); } }, error: hap.common.jsonError }); return true; };
  2. Ok, that looks all ok. Undo what you just did Line 476: $("#upload-" + this.FileName.replace(/[\\'\. \[\]\(\)\-]/g, "_") + " .progressbar").progressbar({ value: 0 }); console.log(this.FileName); console.log(hap.common.formatJSONUrl('~/api/MyFiles/Exists/' + this.Path.replace(/\\/gi, "/").replace(/\.\.\/Download\//gi, "") + '/' + this.FileName)); $.ajax({
  3. 1. Replace your ~/scripts folder with that from the full zip release 2. Apply the 9.3 upgrade again to upgrade the scripts again (the tree script is out of date there), this will reset myfiles/default.aspx 3. Go to edit ~/myfiles/default.aspx in notepad 4. Line 458 5. Change lines 458 to: console.log(this.File.name); this.FileName = $("#uploadfilesrandom").is(":checked") ? this.FormatFileName() : this.File.name; console.log(this.FileName); return;
  4. Click "Start button" in the search box, enter "Turn windows features on or off" in the features window, Click: "Internet Information Services" Click: "World Wide Web Services" Click: "Application Development Features"
  5. Yep, the one in the zip
  6. Ok, that didn't work, can you do the same steps but on line 973 instead and try again, only need firebug
  7. @Paul-K can you try the steps from this post: http://www.edugeek.net/forums/home-access-plus/119261-2-problems-home-access-plus-v9-2-a.html#post1026005
  8. Right, another try with this issue, 1st we will try the drag and drop, see if we can get the debug info. What you will need: 1. Open ~/myfiles/default.aspx with nodepad 2. Go to Line 650 3. Insert above that line: console.log((event.target.files || event.dataTransfer.files)[i]); 4. replace the lines below with: /*var file = new Upload((event.target.files || event.dataTransfer.files)[i], item.Data.Path); uploads.push(file); file.Start();*/ 5. Load Your Browser 6. Login to HAP+ 7. Go to My Files 8. Access the folder you want 9. Press F12 (IE/Firebug) or Firefox > Web Developer > Web Console > Untick CSS/Security 10. Try to drag and drop a file to upload 11. Note what the console does To undo: 1. Open ~/myfiles/default.aspx with nodepad 2. Go to Line 650 3. Remove it 4. Remove /* and */ from the 3 lines below
  9. Did you try clearing your browser cache? Very odd issue as I code and test mainly against Firefox (not IE)
  10. You need to replace your web.config file, it's out of date
  11. Which uploader are you using? Drag and Drop? Upload button and single uploader? Upload button and multiple uploaders?
  12. Have a look at Install Application Request Routing : The Official Microsoft IIS Site
  13. You can add a live tile to the home screen to do that, since it's internal it shouldn't work externally. IIS Routing if you do want another site to be visible
  14. With the 2nd issue, can you try downgrading jquery to v1.8.3: http://code.jquery.com/jquery-1.8.3.min.js
  15. The ad selector can sometimes not load with certain AD setups, I've yet to fond out what that is though. You should be able to make most of it up yourself though. Which browser are you using? Where are you accessing it from? Are you using https?
  16. New feature for v9.3 due out soon - booking system - users will not be able to book a resource if the lesson end time has past, or if allowance="x" is set on the resource after x minutes before, or after, the lesson start. [ATTACH=CONFIG]19489[/ATTACH] So in the above pic, blue is not available to be booked for anyone, even admins, and red is not bookable (laptops only). The green line is where the system things it is (during the lesson). This was a debug shot, and had the time set back 12 hours
  17. Ok, the rooms are showing as being enabled in the HAPConfig, can you do some http://www.edugeek.net/forums/home-access-plus/86059-hap-json-debugging.html to find out if there's a JSON request going out for those resources please For the other can you confirm this code if (user.isBSAdmin) $("#val").html("This week is " + (data[1] == 1 ? "Gold Week" : "Lilac Week")); else { if (data[0] >= 0 ) { $("#val").html("You have " + data[0] + " bookings available to use this week. This Week is a Week " + (data[1] == 1 ? "Gold Week" : "Lilac Week")); } else { $("#val").html("This week is " + (data[1] == 1 ? "Gold Week" : "Lilac Week")); } availbookings = data; }
  18. Hmm, very odd, glad you sorted it. It may of been a cookie issue.
  19. Can you post your HAPConfig.xml file (the booking system section) please
  20. Line 69: Change the 200 to something else style="min-width: <%=(200 * (config.BookingSystem.Lessons.Count + 1)) + 2 %>px">
  21. Updated the release on codeplex: Home Access Plus+ - Downloads
  22. Correct base styles.css: #sidebaredit { background: #fff; width: 0; overflow: hidden; line-height: 30px; position: fixed; left: 0; top: 40px; bottom: 0; -moz-transition: width ease-in-out 0.2s; -o-transition: width ease-in-out 0.2s; -webkit-transition: inherit; transition: width ease-in-out 0.2s; } #sidebaredit.show { width: 30%; border-right: solid 3px #004577; } #sidebaredit h1 { background: #00508a; color: #fff; font-weight: 100; padding: 5px 10px; margin: 0 0 10px; } #sidebaredit label { display: inline-block; width: 25%; text-align: right; padding-right: 10px; } #sidebaredit #bfdisclaimer label { width: auto; } #sidebaredit input[@type=text] { width: 70%; } #sidebaredit .buttons { text-align: center; margin-top: 10px; } #sidebaredit button { font-size: 20px; }
  23. Ok, I've tested my install, which runs jQuery 1.10.2 and IE8 operates normally, creates folders no problem at all, in both Compat mode and normal mode.
  24. Very odd, might be an IIS8 thing, will have to investigate that
  25. Line 201 of Basestyle.css #sidebaredit { background: #fff; width: 0; overflow: hidden; line-height: 30px; white-space: nowrap; position: fixed; left: 0; top: 40px; bottom: 0; -moz-transition: width ease-in-out 0.2s; -o-transition: width ease-in-out 0.2s; -webkit-transition: inherit; transition: width ease-in-out 0.2s; } Need the top: 40px as well The transitions are a IE10 addition
×
×
  • Create New...