3.3 Terminos y Definiciones en La Organizacion Educativa

Embed Size (px)

Citation preview

  • 8/19/2019 3.3 Terminos y Definiciones en La Organizacion Educativa

    1/43

    choose-button")),ke("#flash-upload-container > .moxie-shim")[0].style.top="0px",ke("#flash-upload-container > .moxie-shim")[0].style.left="0px",ke("#flash-upload-container > .moxie-shim")[0].style.width="100%",ke("#flash-upload-container >.moxie-shim")[0].style.height="100%"):(ke("#choose-button").click(function(e){return function(){return ke("#"+e.PLU.id+"_html5").click()}}(this)),ke("#add-button").click(function(){return function(){return ke("#choose-button").click()}}(this)))}},ni=ut.FileQueue={init:function(){return ni._listen()},_listen:function(){return document.observe(oi.QUEUE_EVT,ni._file_queued.bind(this)),document.observe(oi.QUEUE_ERROR_EVT,ni._file_queue_errored.bind(this)),document.observe(oi.UPDATE_EVT,ni._file_updated.bind(this)),document.observe(oi.COMPLETE_EVT,ni._file_completed.bind(this)),document.observe(oi.ERROR_EVT,ni._file_errored.bind(this)),document.observe(oi.CANCEL_EVT,ni._file_cancelled.bind(this))},_file_queued:function(e){var t,n,i,r,o;for(r=e.memo.files,o=[],n=0,i=r.length;i>n;n++)t=r[n],this.files[t.id]=t,ni.uploading||this._start_uploading(),this.current_file=t,o.push(Vt("File queued:",t.name));return o},_file_queue_errored:function(e){return this.

     _file_queued(e),setTimeout(function(t){return function(){return t._file_errored(e)}}(this),250)},_file_updated:function(e){var t,n,i,r,o,s,a,_,l;return r=e.memo.file,s=e.memo.percent_complete,o=s*r.size,l=o+this.completed_size(),i=(new Date).getTime(),this.last_update_time&&(a=(i-this.last_update_time)/1e3,oi.PLU.total.bytesPerSec?this.average_bps=oi.PLU.total.bytesPerSec:(n=o-this.last_update_size,t=n/a,this.average_bps=((l-n)*this.average_bps+n*t)/l),_=(this.queue_size()-l)/this.average_bps,this.formatted_time=re.format_time(_+this.num_left())),this.current_file=r,this.last_update_time=(new Date).getTime(),this.last_update_size=o},_file_completed:function(e){var t;return t=e.memo.file,this.completed_files[t.i

    d]=!0,Vt("File completed:",t.name),this._check_if_finished(t)},_file_errored:function(e){var t;return t=e.memo.file,this.errored_files[t.id]=!0,ti.update_errors(),ii.update_errors(),Vt("File errored:",t.name),this._check_if_finished(t)},_file_cancelled:function(e){var t;return t=e.memo.file,this.cancelled_files[t.id]=!0,t.status===H.UPLOADING?(oi.PLU.stop(),oi.PLU.removeFile(t),oi.PLU.start()):oi.PLU.removeFile(t),Vt("File cancelled:",t.name),this._check_if_finished(t)},_start_uploading:function(){var e;return this.uploading=oi.uploadNext(),this.uploading?(this.all_cancelled=!1,window.onbeforeunload=e=function(){return function(){return Pt("Leaving this page will cancel your uploads.")}}(this)):void 0},finished:function(){return this._finished_uploading()},_check_if_finished:function(){return this.empty()?this.uploading?this._finished_uploading():void 0:oi.uploadNext()},_finished_uploading:function(){var e,t,n,i;if(this.uploading=!1,this.num_files()?this.errors()?(ti.errored(),ii.errored()):(ti.completed(),ii.completed()):ti

    .cancelled(),i=$("inline-upload-status").visible(),Nr.select_fq_paths=[],Nr.inside_dir){for(n in this.completed_files)t=this.files[n],e=rt.normalize(t.dest),Nr.select_fq_paths.push(e+"/"+t.name);Nr.force_reload()}else Nr.in_search_mode()&&cr.force_reload();return i&&ii.show(),pi.onHide=null,window.onbeforeunload=null},empty:function(){return!this.num_left()},num_files:function(){return this.file_ids().length},num_non_cancelled_files:function(){return this.file_ids().length-this.cancels()},next:function(){return v(this.files).filter(function(e){return function(t){return!(e.cancelled_files[t.id]||e.errored_files[t.id]||e.completed_files[t.id])}}(this))[0]},cancels:function(){return v(this.cancelled_files).keys().length},errors:function(){return v(this.errored_files).keys().length},queue_size:function(){var e,t,n,i,r,o;for(o=0,r=this.file_ids(),n=0,i=r.length;i>n;n++)t=r[n],e=this.files[t],this.errored_files[t]||this.cancelled_files[t]||"undefined"==typeof e.size||(o+=e.size);return o},completed_size:function(){var e,t,n,i,r;fo

    r(r=0,i=v(this.completed_files).keys(),t=0,n=i.length;n>t;t++)e=i[t],"undefined"!=typeof this.files[e].size&&(r+=this.files[e].size);return r},file_ids:function(){return v(this.files).map(function(){return function(e,t){return t}}(this))},totalPercentage:function(){return this.completed_size()/this.queue_size()},num_left:function(){return v(this.file_ids()).filter(function(e){return function(t){return!(e.cancelled_files[t]||e.errored_files[t]||e.completed_files[t])}}(this)).length},clear:function(){return this.files={},this.cancelled_files={},this.all_cancelled=!1,this.errored_files={},this.completed_files={},this.last_update_time=0,this.last_update_size=0,this.average_bps=0,this.formatted_time="",this.uploading=!1,window.onbeforeunload=null,"undefined"!=typeof pi&&null!==pi?pi.onHide=null

  • 8/19/2019 3.3 Terminos y Definiciones en La Organizacion Educativa

    2/43

    :void 0}},ni.clear(),si=ut.UploadFile={FILENAME_SNIPPET_LENGTH:15,DEST_SNIPPET_LENGTH:13,_tmpl:null,init:function(){return si._tmpl=ot.tmpl("upload_list_item_tmpl"),si._listen()},_listen:function(){return document.observe(oi.QUEUE_EVT,si._file_queued),document.observe(oi.QUEUE_ERROR_EVT,si._file_queue_errored),document.observe(oi.UPDATE_EVT,si._file_updated),document.observe(oi.COMPLETE_EVT,si._file_completed),document.observe(oi.ERROR_EVT,si._file_errored),document.observe(oi.CANCEL_EVT,si._file_cancelled)},_file_queued:function(e){var t,n,i,r,o;for(r=e.memo.files,o=[],n=0,i=r.length;i>n;n++)t=r[n],o.push(function(e){var t,n,i,r,o,s,a,l;return t=e.dest,Jn.is_quicksend_dest(t)?void Jn.add_external_file(e):(s=q.format_bytes(e.size||0),n=si._tmpl({file:e,icon:rt.file_icon(e.name),filename_snippet:_.em_snippet(e.name,si.FILENAME_SNIPPET_LENGTH),size:s,dest:t,dest_snippet:_.em_snippet(Pt("Dropbox")+t,si.DEST_SNIPPET_LENGTH,0),Sprite:Q}),$("upload-files-list").__sert(n),r=$(e.id),o=ni.num_files(),qn.show_share_button_in_file_uploader&&(i=ke("#"+e.id),i.find(".dest-col").hide()),a=$("upload-files-list"),6>=o?a.removeClassName("scroll"):a.addClassName("scroll"),a.scrollTop=a.scrollHeight,r.down(".dest").observe("click",function(){return Nr.reload_fqpath(r.readAttribute("data-dest"),!0),pi.hide()}),l=r.down(".status-col").down("a.small-x-button"),l.stopObserving("click"),l.observe("click",function(){return document.fire(oi.CANCEL_EVT,{file:e}),ke(document).trigger(oi.CANCEL_EVT,{file:e})}),r.down(".upload-progress-bar").setStyle({width:"0"}))}(t));return o},_file_queue_errored:function(e){return si._file_queued(e),si._file_errored(e)},_file_updated:function(e){var t,n,i,r;return t=e.memo.file,n=$(t.id),1===ni.num_files()&&(r=Pt("%(time_left)s left").format({time_left:ni.formatted_time}),n.down(".time-col").__date(r)),i=parseInt(t.percent,10)+"%","100%"===i&&(n.down(".time-col").__date(),n.down("

    .status-col").__date(new Element("img",{src:"/static/images/icons/ajax-loading-small-vfl3Wt7C_.gif"}))),n.down(".upload-progress-bar").setStyle({width:i})},_file_completed:function(e){var t,n,i;return t=e.memo.file,t.completed=!0,i=$(t.id),i.addClassName("complete"),qn.show_share_button_in_file_uploader&&!Jn.is_quicksend_dest(t.dest)&&(n=ke("#"+t.id),n.find(".share-link").show(),et.SharedFolderActivityLogger.log("web","share_button_in_uploader_impression",Nr.active_user,{}),n.on("click",function(){var e,n;return pi.hide(),et.SharedFolderActivityLogger.log("web","share_button_in_uploader_click",Nr.active_user,{}),e=t.dest+"/"+t.name,n="file_uploader",qn.shmodel(e,n)})),setTimeout(function(){return i.down(".status-col").__date(Q.make("web","s_check"))},0),i.down(".upload-progress-bar").setStyle({width:"100%"})},_file_errored:function(e){var t,n;return t=e.memo.file,n=$(t.id),n?si._actual_file_errored(e):setTimeout(function(){return function(){return si._actual_file_errored(e)}}(this),0)},_actual_file_errored:function(e){var t,

    n,i,r,o;return i=e.memo.file,r=$(i.id),r.addClassName("error"),r.down(".dest-col").hide(),r.down(".time-col").__date(),r.down(".status-col").__date(Element("img",{src:"/static/images/nosync-vfl18cuTS.png",srcset:"/static/images/[email protected] 2x"})),r.down(".upload-progress-bar").setStyle({width:"100%"}),Jn.is_quicksend

     _dest(i.dest)?void 0:(n=e.memo.message||Pt("Upload Error"),t=void 0,e.memo.tooltip_text?t=e.memo.tooltip_text:(t=Pt('Something went wrong with the advanced uploader. If the problem persists, please use the basic uploader</a> to upload via the website.'),ke(document).on("click","a#basic_link",function(){return _i.show_basic_upload(),!1})),r.down(".error-msg").__date(n),o=r.down(".error-details"),o.observe("mouseover",function(){return wi.show(o,t)}),r.down(".error-col").show())},_file_cancelled:function(e){var t,n;return t=e.memo.file,n=$(t.id),n.addClassName("cancelled"),n.down(".dest-col").__date(Pt(e.memo.message||"Canceled")),n.down(".time-col").__date(),n.down(".status-col").__date(Elemen

    t("img",{src:"/static/images/cancelsync-vflGFIEUK.png",srcset:"/static/images/[email protected] 2x"})),n.down(".upload-progress-bar").setStyle({width:"100%"})}},ti=ut.BulkUpload={init:function(){return this.elem=$("bulk-upload-status"),ti._ listen()},_listen:function(){return document.observe(oi.QUEUE_EVT,ti._file_queued.bind(this)),document.observe(oi.UPDATE_EVT,ti._file_updated.bind(this))},_file

     _queued:function(){var e;return e=new Element("a",{"class":"small-x-button"}),e.observe("click",function(){var e,t,n,i,r;for(ni.all_cancelled=!0,e=ni.file_ids().slice(0),r=[],n=0,i=e.length;i>n;n++)t=e[n],ni.completed_files[t]||ni.errored_files[t]?r.push(void 0):(document.fire(oi.CANCEL_EVT,{file:ni.files[t]}),r.push(ke(document).trigger(oi.CANCEL_EVT,{file:ni.files[t]})));return r}),this.elem.dow

  • 8/19/2019 3.3 Terminos y Definiciones en La Organizacion Educativa

    3/43

    n(".status").__date(e)},_file_updated:function(){var e,t,n;return ni.num_files()>1&&(this.elem.removeClassName("error"),this.elem.removeClassName("complete"),this.elem.removeClassName("cancelled"),e=Ft("%d file","%d files",ni.num_non_cancelled_files()).format(ni.num_non_cancelled_files()),this.elem.down(".num-files")._ 

     _date(e),t=Pt("- %(size)s").format({size:q.format_bytes(oi.PLU.total.size)}),this.elem.down(".size").__date(t),ni.formatted_time&&(n=Pt("%(time_left)s left").format({time_left:ni.formatted_time}),this.elem.down(".time-left").__date(n)),this.elem.down(".upload-progress-bar").style.width=Math.min(100,(100*ni.totalPercentage()||0).toFixed(2))+"%",this.elem.show(),"flash"===oi.PLU.runtime)?Fe.clone_position(ke("#flash-upload-container"),ke("#add-button")):void 0},update_errors:function(){var e;return e=Ft("- %d error","- %d errors",ni.errors()).format(ni.errors()),$("bulk-upload-status").down(".num-errors").__date(e)},completed:function(){var e,t;return $("hide-button").hide(),$("done-button").show(),ni.num_files()>1?(this.elem.addClassName("complete"),e=Ft("Uploaded %d file","Uploaded %d files",ni.num_non_cancelled_files()).format(ni.num_non_cancelled_files()),this.elem.down(".num-files").__date(e),t=Pt("- %(size)s").format({size:q.format_bytes(ni.completed_size())}),this.elem.down(".size").__date(t),this.elem.down(".num-errors").__date(),this.elem.down(".time-left").__date(),this.elem.down(".status").__date(Q.make("web","s_check")),this.elem.down(".upload-progress-bar").style.width="100%"):void 0},errored:function(){var e;return $("hide-button").hide(),$("done-button").show(),this.completed(),e=Ft("- %d error","- %d errors",ni.errors()).format(ni.errors()),this.elem.down(".num-errors").__date(e)},cancelled:function(){return $("hide-button").hide(),$("done-button").show(),ni.num_files()>1?(this.elem.addClassName("cancelled"),this.elem.down(".num-files").__date(Pt("All uploads

    canceled")),this.elem.down(".size").__date(),this.elem.down(".num-errors").__date(),this.elem.down(".time-left").__date(),this.elem.down(".status").__date(Element("img",{src:"/static/images/cancelsync-vflGFIEUK.png",srcset:"/static/images/[email protected] 2x"})),this.elem.down(".upload-progress-bar").style.width="100%"):void 0}},ii=ut.InlineUploadStatus={FILENAME_SNIPPET_LENGTH:30,init:function(){return this._listen()},_listen:function(){return document.observe(oi.QUEUE_EVT,ii._file_queued.bind(this)),document.observe(oi.UPDATE_EVT,ii._file_updated.bind(this))},_file_queued:function(){var e,t;return e=$("inline-upload-status"),e.removeClassName("error"),e.removeClassName("complete"),e.down(".icon").__date(Q.make("web","s_sync")),e.down(".file-desc").__date(Pt("Starting upload...")),e.down(".num-errors").__date(),t=Ft("%d file","%d files",ni.num_left()).format(ni.num_ left()),e.down(".view-details").__date(t),e.down(".status").__date(),e.down(".inline-upload-progress").style.width="0%"},_file_updated:function(e){var t,n,i,r,o

    ,s;return t=$("inline-upload-status"),n=e.memo.file,t.down(".icon").__date(Q.make("web","s_sync")),i=Pt("Uploading %(filename)s").format({filename:_.em_snippet(n.name,this.FILENAME_SNIPPET_LENGTH)}),t.down(".file-desc").__date(i),ni.num_left()>1?(s=Ft("%d file left","%d files left",ni.num_left()-1).format(ni.num_left()-1),t.down(".view-details").__date(s)):t.down(".view-details").__date(Pt("View details")),ni.formatted_time&&(o=Pt("%(time_left)s left").format({time_left:ni.formatted_time}),t.down(".status").__date(o)),r=n.percent+"%",t.down(".inline-upload-progress").style.width=r},update_errors:function(){var e,t;return e=$("inline-upload-status"),t=Ft("- %d error","- %d errors",ni.errors()).format(ni.errors()),e.down(".num-errors").__date(t)},add_x_button:function(){var e,t;return t=newElement("a",{"class":"small-x-button"}),t.observe("click",function(){return ii.hide(),oi.reset()}),e=$("inline-upload-status"),e.down(".status").__date(t)},completed:function(){var e,t;return e=$("inline-upload-status"),e.addClassName("comp

    lete"),e.removeClassName("error"),e.down(".icon").__date(Q.make("web","s_check")),t=ni.num_files()>1?Pt("Uploaded %(num_files)d files").format({num_files:ni.num

     _non_cancelled_files()}):Pt("Uploaded %(filename)s").format({filename:_.em_snippet(ni.current_file.name,this.FILENAME_SNIPPET_LENGTH)}),e.down(".file-desc").__date(t),e.down(".num-errors").__date(),e.down(".view-details").__date(Pt("View details")),this.add_x_button(),e.down(".inline-upload-progress").style.width="100%"},errored:function(){var e,t,n,i;return e=$("inline-upload-status"),e.addClassName("error"),e.removeClassName("complete"),e.down(".icon").__date(Element("img",{src:"/static/images/nosync-vfl18cuTS.png",srcset:"/static/images/[email protected]"})),t=void 0,ni.num_files()>1?(t=Pt("Uploaded %(num_completed)d of %(num_file

  • 8/19/2019 3.3 Terminos y Definiciones en La Organizacion Educativa

    4/43

    s)d files").format({num_completed:ni.num_non_cancelled_files()-ni.errors(),num_files:ni.num_non_cancelled_files()}),e.down(".file-desc").__date(t),i=Ft("- %d error","- %d errors",ni.errors()).format(ni.errors()),e.down(".num-errors").__date(i)):(null!=ni.current_file&&(n=_.em_snippet(ni.current_file.name,this.FILENAME_ SNIPPET_LENGTH)),t=n?Pt("Unable to upload %(filename)s").format({filename:n}):Pt("Unable to upload file"),e.down(".file-desc").__date(t),e.down(".num-errors")._ 

     _date()),e.down(".view-details").__date(Pt("View details")),this.add_x_button(),e.down(".inline-upload-progress").style.width="100%"},show:function(){return $("inline-upload-status").show()},hide:function(){return $("inline-upload-status").hide()}},ai=ut.UploadPrep={_drop_indicators:!1,_drop_dest_folder:null,file_counter:0,current_req:null,_notifications_cleared:!1,supported:function(){return Prototype.BrowserFeatures.DB_CORS},enabled:function(){return ai.supported()&&Nr.inside_dir&&!(Nr.in_search_mode()&&cr.fulltext_search_enabled)},browse_indicators_enabled:function(){var e,t,n,i;if(!ai.enabled())return!1;for(i=["modal-overlay"],t=0,n=i.length;n>t;t++)if(e=i[t],$(e).visible())return!1;return!0},modal_indicators_enabled:function(){var e;return ai.enabled()&&ke("#modal #upload-modal-dropzone").length&&ke("#modal").visible()&&(null!=(e=ke("#modal").offset())?e.left:void 0)>0},_show_border_drop_indicators:function(){return $$(".external-drop-indicator").each(function(e){return ke(e).css("opacity",0).fadeTo(500,.6)})},_hide_border_drop_indicators:function(){return $$(".external-drop-indicator").invoke("hide")},show_drop_indicators:function(e){var t;if(!ai._drop_indicators){if(ai.modal

     _indicators_enabled())t=$("upload-modal-dropzone"),Fe.clone_position(ke(t),ke("#modal"),{setLeft:!1,setTop:!1}),ke(t).fadeIn(500),ai._show_border_drop_indicators();else{if(!ai.browse_indicators_enabled())return;Tr._add_drop_indicators(e)}re

    turn $("drag-status").removeClassName("active"),ai._drop_indicators=!0}},hide_drop_indicators:function(){return ai._drop_indicators&&(ai._hide_border_drop_indicators(),Tr._remove_drop_indicators(),ai._notifications_cleared||b.clear(),$("upload-modal-dropzone").hide(),$("drag-status").addClassName("active"),setTimeout(function(){return ai._drop_indicators=!1,ai._drop_dest_folder=null,ai._notifications_cleared=!1},500)),ai._notifications_cleared=!0},folder_dragover:function(e){var t;return ai.browse_indicators_enabled()&&ai._drop_indicators?(ri.disabled?null==ai._drop_dest_folder&&(t=Pt("You can't upload files because you're out of space."),b.error(t,60),ai._notifications_cleared=!1,ai._show_border_drop_indicators()):e!==ai._drop_dest_folder&&(e===Nr.containing_fq_path()?(Nr.inside_read_only

     _shared_folder?(t=Pt("You don't have permission to add to this folder."),b.error(t,60)):(t=Pt("Drop your file to %(upload_action)s",{comment:"upload_action is a phrase like 'upload to folder 'XYZ'"}).format({upload_action:_i.upload_plain_sn

    ippet()}),b.success(new ot(t),60),ai._show_border_drop_indicators()),ai._notifications_cleared=!1):(b.clear(),ai._hide_border_drop_indicators())),ai._drop_dest_ folder=e):void 0},supports_recursive_upload:function(e){var t;return window.File&&window.FileReader&&window.FileList&&window.Blob&&(null!=e&&null!=(t=e[0])?t.webkitGetAsEntry:void 0)},upload:function(e,t,n){var i,r,o,s;if(null==n&&(n=null),!Nr.inside_read_only_shared_folder){if(ri.disabled)return s=Pt("You can't upload files because you're out of space."),b.error(s);if(ai.supports_recursive_upload(n))return ai._recursive_upload(e,n);for(r=0,o=t.length;o>r;r++)i=t[r],i.dest=e;return ai._upload(t,n)}},_recursive_upload:function(e,t){var n,i,r,o,s,a,_,l,u,d,c,h,f;for(u=[],f=[],i=function(t,n){return t.dest=e+rt.parent_dir(n.fullPath),u.push(t)},c=0,h=t.length;h>c;c++)d=t[c],a=d.webkitGetAsEntry(),null!==a&&(a.isDirectory?Jn.is_quicksend_dest(e)?b.error(Pt("Please select files instead of folders.")):f.push(a):i(d.getAsFile(),a));return s=0,l=0,r=function(e,t){var n;return

     n=Pt('The drag and drop uploader can\'t upload %(name)s because it contains Unicode characters. Use the advanced uploader instead.').format({name:t.name}),b.error(new ot(n)),ke("#use-advanced-uploader").on("click",function(e){return e.preventDefault(),_i.show_upload()})},n=3e3,_=0,(o=function(){for(var e;f.length;)a=f.pop(),null!==a&&(a.isDirectory?!function(e){var t;return t=e.createReader(),s+=1,t.readEntries(function(e){var n,i,r;if(0!==e.length){for(i=0,r=e.length;r>i;i++)n=e[i],f.push(n);return t.readEntries(arguments.callee)}return s-=1},function(t){return s-=1,r(t,e)})}(a):(l+=1,e=function(e){return function(t){return i(t,e),l-=1}},a.file(e(a),function(e){return l-=1,r(e,a)})));return u.length>n&&!_?(_=1,void b.error(Pt("The Dropbox website can't

  • 8/19/2019 3.3 Terminos y Definiciones en La Organizacion Educativa

    5/43

    upload more than %(max_files)s files.").format({max_files:n}))):s||l?o.defer():u.length?ai._upload(u):void 0})()},_upload:function(e,t){var n,i;return null==t&&(t=null),t&&(n=this._parse_upload_items(t)),i=function(){var t,i,r,o,s;for(s=[],i=0,r=e.length;r>i;i++)t=e[i],navigator.userAgent.toLowerCase().indexOf("chrome")>-1&&(null!=n&&null!=(o=n[t.name])?o.isDirectory:void 0)&&(t.is_directory=!0),t.id=H.guid(),s.push(oi.PLU.addFile(t));return s},$("modal").visible()?i():(_i.show_upload(i),pi.hide(null,!0))},_parse_upload_items:function(e){var t,n,i,r;for(t={},i=0,r=e.length;r>i;i++)n=e[i],n.getAsEntry?n=n.getAsEntry():n.webkitGetAsEntry&&(n=n.webkitGetAsEntry()),t[n.name]=n;return t}},ri=ut.OverQuotaUploads={disabled:!1,init:function(e){return this.disabled=e,this.disabled?ke("body").addClass("uploads-disabled"):void 0}};var _i;_i=INLINE_JS.FileOps=ut.FileOps={NOTIFICATION_SNIPPET_LEN:40,_find_app_by_id:function(e){var t,n,i,r;for(r=pi.vars.apps,n=0,i=r.length;i>n;n++)if(t=r[n],t.app_id===e)return t;return null},create_album

     _from_folder:function(e,t){return g.WebProgressRequest({url:"/collection_from_folder",data:{path:e,album_name:t},subject_user:K.get_viewer().photos_user,progress_text:Pt("Creating album..."),success:function(e){return e=JSON.parse(e),nt.redirect(e.url)}})},dir_handler:function(e,t){var n,i;return"string"==typeof t&&(t=$(t)),n=$$(".treeview .highlight")[0],n&&n.removeClassName("highlight"),i=t.up("div"),i.addClassName("highlight"),pi.selected_div=i,pi.shown()&&t.blur(),document.fire("db:dir_click",{path:e}),pi.vars.selected_path=e},show_folder_pick:function(e,t,n,i,r){var o;return Gt.fillVal(rt.filename(t).escapeHTML(),"folder-pick-file"),bi.move("copy-move-treeview","folder-pick-treeview",{user:Nr.active_user}),o=Pt(r?"Move":"Copy"),Gt.fillVal(o,"folder-pick-action-text"),pi.show(e,$("folder-pick"),{fq_path:t,action:n,folder:i}),ke("#first-treeview-link").trigger("cli

    ck")},show_bulk_folder_pick:function(e,t,n,i){var r,o,s;return s=lr.profile_files(n),o=lr.profile_summary(s),Gt.fillVal(o,"bulk-folder-pick-file"),bi.move("copy-move-treeview","bulk-folder-pick-treeview",{user:Nr.active_user}),r=Pt("move"===t?"Move":"copy"===t?"Copy":"Restore"),Gt.fillVal(r,"bulk-folder-pick-action-text"),pi.show(e,$("bulk-folder-pick"),{files:n,action:i}),ke("#first-treeview-link").trigger("click")},show_copy:function(e,t){var n;return n=Pt(t?"Copy folder to...":"Copy file to..."),bi.set_params({disable_read_only:!0}),_i.show_folder_pick(n,e,_i.do_copy,t,!1)},show_copy_bulk:function(e){var t;return t=Ft("Copy %(item_count)s item to...","Copy %(item_count)s items to...",e.length).format({item_count:e.length}),bi.set_params({disable_read_only:!0}),_i.show_bulk_folder_pick(t,"copy",e,_i.do_bulk_copy)},show_compress_bulk:function(e,t){return bi.set_params({disable_read_only:!0}),Lt.show({title_text:Ft("Compress file?","Compress files?",t.length),body_html:Ft("Do you want to compress %(filename)s?
    This might take a while.","Do you want to compress %(file_count)s files?
    This might take a while.",t.length).format({file_count:t.length,filename:v.escape(t.first().filename)}),confirm_text:Pt("Compress"),cancel_text:Pt("Cancel"),confirm_callback:function(){return _i.do_bulk_compress(e,t)}})},do_bulk_compress:function(e,t){var n;return b.clear(),n=t.pluck("fq_path"),g.WebProgressRequest({url:"/cmd/compress",data:{files:n},subject_user:e,progress_text:Pt("Compressing..."),success:function(e){var n,i,r;return r=JSON.parse(e),n=r.compressed_files,ft(n.length>0,"Must have at least 1 compressed file"),i=v.escape(rt.filename(n.first().fq_path)),b.success(Ft("Compressed successfully to %(filename)s","Compressed %(file_count)s files successfully.",n.length).format({file_count:n.length,filename:i})),ke(document).trigger(s.COMPRESS,{original_files:t,compressed_files:n})}})},show_move_bulk:function(e){var t;return t=Ft("Move %(item_count)s item to...","Move %(item_count)s items to...",e.length).format({item_count:e.length}),

    bi.set_params({disable_read_only:!0}),_i.show_bulk_folder_pick(t,"move",e,_i.do_ bulk_move)},show_move:function(e,t){var n;return n=Pt(t?"Move folder to...":"Move file to..."),bi.set_params({disable_read_only:!0}),_i.show_folder_pick(n,e,_i.do_move,t,!0)},show_delete:function(e,t,n,i,r,o){var s,a;return null==r&&(r=null),null==o&&(o=!1),o?r?(ft(e.is_team,"Found a nested shared folder not on a business account"),a=K.get_viewer().team_name,s=Pt("Are you sure you want to delete the shared folder `%(items)s'? People outside %(team_name)s you've shared this folder with will still have access unless you remove them from the member list.").format({items:rt.filename(t).escapeHTML(),team_name:a.escapeHTML(),file_path:t.esca

  • 8/19/2019 3.3 Terminos y Definiciones en La Organizacion Educativa

    6/43

    peHTML()})):s=Pt("Are you sure you want to delete the shared folder `%(items)s'? This shared folder will stay shared with other members and you can rejoin it later.").format({items:rt.filename(t).escapeHTML()}):s=r?Pt("Are yousure you want to delete %(items)s from the shared folder `%(sf_name)s'?").format({items:rt.filename(t).escapeHTML(),sf_name:r.escapeHTML()}):Pt("Are you sure you want to delete %(items)s from your Dropbox?").format({items:rt.filename(t).escapeHTML()}),Lt.show({title_text:Pt(n?"Delete folder?":"Delete file?"),body_html:

     

      

     +s+"",confirm_text:Pt("Delete"),cancel_text:Pt("Cancel"),confirm_callback:function(){return i?_i.do_nonbrowse_delete(e,[t]):_i.do_delete(e,t)}})},show_bulk_delete:function(e,t,n){var i;return null==n&&(n=null),i=n?Ft("Are you sure you want to delete %(item_count)s item from the shared folder `%(sf_name)s'?","Are you sure you want to delete %(item_count)s items from the shared folder `%(sf_name)s'?",t.length).format({item_count:t.length,sf_name:n.escapeHTML()}):Ft("Are you sure youwant to delete %(item_count)s item from your Dropbox?","Are you sure you want to delete %(item_count)s items from your Dropbox?",t.length).format({item_count:t.length}),Lt.show({title_text:Ft("Delete %(item_count)s item?","Delete %(item_count)s items?",t.length).format({item_count:t.length}),body_html:i,confirm_text:Pt("Delete"),cancel_text:Pt("Cancel"),confirm_callback:function(){return _i.do_bulk_delete(e,t)}})},show_purge:function(e,t){return Lt.show({title_text:Pt(t?"Permanently delete folder?":"Permanently delete file?"),body_html:Pt("Are you sure you want to permanently delete %(items)s from your Dropbox?").format({items:rt.filename(e).escapeHTML()}),confirm_text:Pt("Permanently delete"),cancel_text:Pt("Cancel"),confirm_callback:function(){return _i.do_purge(Nr.find_ 

    file(e))}})},show_bulk_purge:function(e){return Lt.show({title_text:Ft("Permanently delete %d item?","Permanently delete %d items?",e.length).format(e.length),body_html:Ft("Are you sure you want to permanently delete %(item_count)s item from your Dropbox?","Are you sure you want to permanently delete %(item_count)s items from your Dropbox?",e.length).format({item_count:e.length}),confirm_text:Pt("Permanently delete"),cancel_text:Pt("Cancel"),confirm_callback:function(){return _i.do_bulk_purge(e)}})},show_bulk_restore:function(e){return Lt.show({title_text:Ft("Restore %d item...","Restore %d items...",e.length).format(e.length),body_ html:Ft("Are you sure you want to restore %(item_count)s item?","Are you sure you want to restore %(item_count)s items?",e.length).format({item_count:e.length}),confirm_text:Pt("Restore"),cancel_text:Pt("Cancel"),confirm_callback:function(){return _i.do_bulk_restore(e)}})},wrap_strong:function(e){return""===Nr.containing_fq_path()?e.escapeHTML():""+e.escapeHTML()+""},upload_snippe

    t:function(e){var t,n;return null==e&&(e=1e3),K.get_viewer().is_paired&&Nr.active_user.is_team&&(n=_.em_snippet(K.get_viewer().team_name,e).escapeHTML()),""===Nr.containing_fq_path()?K.get_viewer().is_paired?Nr.active_user.is_team?Pt(" upload to your %(team_name)s Dropbox",{comment:"Used after the string

     

    drop your file to...

     

      or 

    choose a file to... 

     "}).format({team_name:n}):Pt(" upload to your personal Dropbox",{comment:"Used after the string

     

    drop your file to... 

      or 

    choose a file to...

     

     "}):Pt(" upload to your Dropbox"):(t=_.em_snippet(rt.filename(Nr.containing_fq_path()),e).escapeHTML(),K.get_viewer().is_paired?Nr.active_user.is_team?Pt(" upload to the folder %(folder)s in your %(team_name)s Dropbox",{comment:"Used after the string

     

    drop your file to... 

      or 

    choose afile to...

     

     "}).format({folder:t,team_name:n}):Pt(" upload to the folder %(folder)s in your personal Dropbox",{comment:"Used after the string

     

    drop your file to...

     

      or 

    choose a file to... 

     "}).format({folder:t}):Pt(" upload

    to the folder %(folder)s",{comment:"Used after the string 

    drop your file to...

     

      or 

    choose a file to... 

     "}).format({folder:t}))},upload_short_ snippet:function(e){var t,n;return null==e&&(e=1e3),(n=Nr.containing_fq_path())?(t=_.em_snippet(rt.filename(n),e),Pt("Upload to

     

    %(folder_name)s 

     ",{comment:"Upload a file to some folder on the website"}).format({folder_name:t})):Pt("Uploadto Dropbox",{comment:"Upload a file to the root Dropbox folder"})},upload_plain_ snippet:function(e){return null==e&&(e=1e3),this.upload_snippet(e).replace("","

     

     ").replace(""," 

     ")},show_upload:function(e,t,n){var i,r,o,s,a,_ ;if(i=Nr.containing_fq_path(),ri.disabled)return Gt.fillVal(this.wrap_strong(rt.filename(i)),"disabled-upload-foldername"),a=this.upload_short_snippet(20),void

  • 8/19/2019 3.3 Terminos y Definiciones en La Organizacion Educativa

    7/43

    pi.show(a,$("disabled-upload-modal"),{},!1);if(!FlashDetect.versionAtLeast(9)&&"flash"===oi.runtimes)return _i.show_basic_upload(),void $("enhanced-upload-toggle").hide();for(Gt.fillVal(this.upload_snippet(20),"upload-foldername"),Gt.fillVal(this.upload_plain_snippet(10),"dnd-upload-foldername"),$("upload-desc").visible()&&ai.supported()&&($("upload-desc").hide(),$("dnd-upload-desc").show()),a=this.upload_short_snippet(20),pi.show(a,Gt.fromElm("advanced-upload-modal"),{wit_group:"advanced-uploader"},!1,!1,ni.num_files()),_=[$("modal").down(".basic-link-start"),$("modal").down(".basic-link-running")],r=0,o=_.length;o>r;r++)s=_[r],null!=s&&s.observe("click",function(){return _i.show_basic_upload(),!1});return ni.num_files()?oi.set_dest(rt.normalize(i)):oi.init(rt.normalize(i),!0,e,n),ii.hide()},show_basic_upload:function(){return Gt.fillVal(this.upload_snippet(20),"basic-upload-foldername"),pi.show(this.upload_short_snippet(20),$("basic-upload-modal"),{},!1),$("modal").down(".enhanced-link").observe("click",function(){return _ i.show_upload(),!1}),oi.set_dest(rt.normalize(Nr.containing_fq_path())),oi.init_ basic()},show_undelete:function(e){var t,n,i;return Gt.fillVal(e.filename.escapeHTML(),"undelete_filename"),t=Q.make("web",e.icon,{}),t.addClassName("link-img"),t.style.backgroundColor="transparent",n=_i.build_revisions_uri(e.fq_path,Nr.active_user,{undelete:1}),$$(".undelete-icon").invoke("update",t),$$(".undelete-other-versions")[0].href=n,$$(".undelete-link")[0].href=n,i=Pt("Restore file?"),pi.show(i,$("undelete-modal"),{file:e})},do_undelete:function(){var e,t;return e=pi.vars.file,t=Pt("Restored

     

    %(file_name)s 

     ").format({file_name:e.filename}),new Ajax.DBRequest("/cmd/restore",{parameters:{files:[e.fq_path]},subject_user:Nr.active_user,job:!0,html_in_error_msg:!0,progress_text:Pt("Restoring..."),onSuccess:function(){return pi.hide(),b.success(t),document.fire(s.RESTORE,{files:[e]})}})

    ,!1},do_copy:function(e,t){var n;return e=e||pi.vars.fq_path,t=t||pi.vars.selected_path,n=Nr.find_file(e),ft(n,"Trying to copy a file we couldn 

     t find."),_i.do_ bulk_copy([n],t)},do_bulk_copy:function(e,t){var n,i,r,o,a;if(Nr.pre_action_selection=xr.get_selected_fq_paths(),e=e||pi.vars.files,ft(e.length>0,"Tried to copy 0 files"),"undefined"==typeof t){if("undefined"==typeof pi.vars.selected_path)return void b.error(Pt("You need to select a destination for the file."));t=pi.vars.selected_path}for(t=rt.normalize(t),r=0,o=0,a=e.length;a>o;o++)if(n=e[o],n.dir&&0===(t+"/").indexOf(n.fq_path+"/"))return void b.error(Pt("You cannot copy afolder into itself."));return i=e.pluck("fq_path"),b.clear(),new Ajax.DBRequest("/cmd/copy",{parameters:{files:i,to_path:t},subject_user:Nr.active_user,job:!0,html_in_error_msg:!0,progress_text:Pt("Copying..."),onSuccess:function(r){var o,a,l,u,d,c,h,f;for(o=r.responseText.evalJSON().changesets,a=i.length,c=_.em_snippet(rt.filename(t),_i.NOTIFICATION_SNIPPET_LEN).escapeHTML(),h=Ft("Copied %(count)

    d item to 

    %(location)s 

     .","Copied %(count)d items to 

    %(location)s 

     .",a),h=h.format({count:a,location:c}),ee.notifyWithUndo(new ot(h),o,_i.do_rollback),l=[],f=r.responseText.evalJSON().new_browse_files,u=0,d=f.length;d>u;u++)n=f[u],l.push(n.fq_path);return Nr.select_ fq_paths=l,$("reload-link").observe("click",function(){return pr.set_path_url(null,t)}),bi.schedule_reset(),document.fire(s.COPY,{files:e,to_fq_path:t})}})},bulk_move_error:function(e,t){var n,i,r,o,s,a,_,l,u;if(r=Nr.find_file(t),o=lr.profile_files(e),l=void 0,a=void 0,u=void 0,r?(a=r.dir,l=r.fq_path,u=r.target_ns||r.ns_id):Nr.inside_dir&&Nr.can_get_details_from_fq_path(t)?(i=Nr.details_from_fq_path(t),a=!0,l=i.fq_path,u=i.ns_id):(a=!0,l=t,u=void 0),s=e.pluck("fq_path").collect(rt.normalize),-1!==s.indexOf(rt.normalize(l)))return Pt("You cannot copy a folder into itself.");if(n=_=function(e){var t;return t=rt.parent_dir(e.fq_path),t===(l||"/")},e.all(n))return Ft("That file already exists in that folder.","Thos

    e files already exist in that folder.",e.length);if(!a)return Pt("You cannot put files inside one another.");if(o.target_namespaces>0&&u&&u!==c.root_ns&&r){if(o.sandboxes>0){if(r.is_sandbox())return Pt("You

     

     re not allowed to put an application folder inside another application folder.");if(r.is_shared_folder())return Pt("You

     

     re not allowed to put an application folder inside a shared folder.")}else if(o.shared_folders>0){if(r.is_sandbox())return Pt("You

     

     re not allowed to puta shared folder inside an application folder.");if(r.can_hold_shared_folders&&0===o.team_shared_folders)return;if(r.is_shared_folder())return Pt("You

     

     re not allowed to put a shared folder inside another shared folder.")}return Pt("You

     

     re not allowed to nest special folders.")}return Nr.public_folder_enabled&&"/Public"=

  • 8/19/2019 3.3 Terminos y Definiciones en La Organizacion Educativa

    8/43

    ==l&&o.target_namespaces>0?Pt("You 

     re not allowed to move shared folders to your Public folder."):o.public_folder>0?Pt("You

     

     re not allowed to move your Public folder."):o.deleted>0?Pt("Moving deleted folders or files isn't allowed."):void 0},do_move:function(e,t){var n;return e=e||pi.vars.fq_path,t=t||pi.vars.selected_path,n=Nr.find_file(e),ft(n,"Trying to move a file we couldn

     

     t find."),_i.do_bulk_ move([n],t)},do_nonbrowse_move:function(e,t,n){var i,r;return i=ke.Deferred(),r="/cmd/move",new Ajax.DBRequest(r,{parameters:{files:t,to_path:n},subject_user:e,job:!0,html_in_error_msg:!0,progress_text:Pt("Moving¼"),onSuccess:i.resolve,onFailure:i.reject}),i.promise()},do_bulk_move:function(e,t){var n,i,r,o;return Nr.pre

     _action_selection=xr.get_selected_fq_paths(),(e=e||pi.vars.files)?(ft(e.length>0,"Tried to move 0 files"),o=t||pi.vars.selected_path||"",o=rt.normalize(o),(n=_i.bulk_move_error(e,o))?void b.error(n):(i=e.pluck("fq_path"),b.clear(),r=function(t){var n,r,a,l;return n=t.responseText.evalJSON().changesets,r=i.length,a=_.em

     _snippet(rt.filename(o),_i.NOTIFICATION_SNIPPET_LEN).escapeHTML(),l=Ft( 

     Moved %(count)d item to `%(location)s'.

     

     , 

     Moved %(count)d items to `%(location)s'.

     

     ,r),l=l.format({count:r,location:a}),ee.notifyWithUndo(new ot(l),n,_i.do_rollback),$("reload-link").observe("click",function(){return pr.set_path_url(null,o)}),bi.schedule_reset(),document.fire(s.MOVE,{files:e,to_fq_path:o})},_i.do_nonbrowse_move(Nr.active_user.id,i,o).then(r))):void0},do_rollback:function(e){return new Ajax.DBRequest("/cmd/rollback",{parameters:{ns_to_cs:JSON.stringify(e)},subject_user:Nr.active_user,job:!0,html_in_error_msg:!0,progress_text:Pt("Undoing..."),onSuccess:function(){var e;return e=Pt("Undo complete."),b.success(e),ft(Nr.pre_action_selection instanceof Array,"Expected a selection from before the action to be undone"),Nr.in_search_mode()?(cr.selec

    t_fq_paths=Nr.pre_action_selection,cr.force_reload()):(Nr.select_fq_paths=Nr.pre _action_selection,Nr.force_reload()),Nr.pre_action_selection=!1}})},do_bulk_delete:function(e,t){var n,i;return Nr.pre_action_selection=xr.get_selected_fq_paths(),t=t||pi.vars.files,ft(t.length>0,"Tried to delete 0 files"),i=function(){vare,i,r;for(r=[],e=0,i=t.length;i>e;e++)n=t[e],r.push(n.fq_path);return r}(),b.clear(),new Ajax.DBRequest("/cmd/delete",{parameters:{files:i},subject_user:e,job:!0,html_in_error_msg:!0,progress_text:Pt("Deleting..."),onSuccess:function(e){var n,r;return r=e.responseText.evalJSON(),n=Ft("Deleted %d item.","Deleted %d items.",i.length).format(i.length),ee.notifyWithUndo(n,r.changesets,_i.do_rollback),bi.schedule_reset(),document.fire(s.DELETE,{files:t})}})},do_delete:function(e,t){var n;return n=Nr.find_file(t||pi.vars.fq_path),ft(n,"Trying to delete a filewe couldn

     

     t find."),_i.do_bulk_delete(e,[n])},do_nonbrowse_delete:function(e,t){var n,i;return n=ke.Deferred(),i=Ft("Deleted %(file_count)s item","Deleted %(fil

    e_count)s items",t.length),i=i.format({file_count:t.length}),b.success(i),new Ajax.DBRequest("/cmd/delete",{parameters:{files:t},subject_user:e,html_in_error_msg:!0,onSuccess:function(e){return document.fire(s.DELETE,{fq_paths:t}),n.resolve(e)},onFailure:function(e){return b.error(Pt("Failed to perform the delete. Please try again later.")),n.reject(e)}}),n.promise()},do_nonbrowse_rename:function(e,t,n){var i;return i=ke.Deferred(),new Ajax.DBRequest("/cmd/rename"+encodeURIComponent(t),{parameters:{to_path:n},subject_user:e,html_in_error_msg:!0,onSuccess:function(e){return i.resolve(e)},onFailure:function(e){return i.reject(e)}}),i.promise()},do_purge:function(e){return ft(e,"Trying to purge a file we couldn

     

     tfind."),_i.do_bulk_purge([e])},do_bulk_purge:function(e){var t,n;return ft(e.length>0,"Tried to purge 0 files"),t=e.collect(function(e){return e.fq_path}),n=Ft("Permanently deleted %d item","Permanently deleted %d items",t.length).format(t.length),new Ajax.DBRequest("/cmd/purge",{parameters:{files:t},subject_user:Nr.ac

    tive_user,job:!0,html_in_error_msg:!0,progress_text:Pt("Deleting..."),onSuccess:function(){return b.success(n),bi.schedule_reset(),document.fire(s.PURGE,{files:e})}})},do_bulk_restore:function(e){var t,n,i;return e=e||pi.vars.files,i=pi.vars.user,ft(e.length>0,"Tried to restore 0 files"),t=e.collect(function(e){returne.fq_path}),n=Ft("Restored %d item","Restored %d items",t.length,{comment:"meaning, successfully restored x files and folders"}).format(t.length),new Ajax.DBRequest("/cmd/restore",{parameters:{files:t},subject_user:Nr.active_user,job:!0,html_in_error_msg:!0,progress_text:Pt("Restoring..."),onSuccess:function(){return b.success(n),bi.schedule_reset(),document.fire(s.RESTORE,{files:e})}})},do_folder

     _restore:function(e,t){var n;return n=function(t){var n,i;return n=Pt("Restoring

  • 8/19/2019 3.3 Terminos y Definiciones en La Organizacion Educativa

    9/43

      

    %(folder_name)s 

     ").format({folder_name:rt.filename(e)}),i=t.responseText,i.startsWith("err:")?(i=i.substring(4),ke("#async-result").html(i),b.error(new ot(i),60)):(n=Pt("Restored

     

    %(folder_name)s 

     ").format({folder_name:rt.filename(e)}),ke("#status-of-files").text(Pt("Restored files")),b.success(n,60)),ke("#restore-done-heading").text(n),ke(".pre-restore").hide(),ke(".post-restore").show()},new Ajax.DBRequest("/cmd/restore",{parameters:{files:[e]},job:!0,html_in_error_msg:!0,progress_text:Pt("Restoring..."),onSuccess:n,onFailure:n,subject_user:t})},do_bulk_download:function(e){var t,n,i,r;for(t=new Element("form",{action:o({scheme:"https",authority:be.BLOCK_CLUSTER,path:"/zip_batch"}).updateQuery(D.UID_PARAM_NAME,Nr.active_user.id).toString(),method:"post"}),i=0,r=e.length;r>i;i++)n=e[i],li.add_vars(t,{files:n.fq_path});return li.add_vars(t,{parent_path:Nr.block_hash

     _param||"/",w:Nr.block_hash}),$(document.body).__sert(t),t.submit()},do_bulk_photo_view:function(e,t){var n,i,r,s;return s={},s[D.UID_PARAM_NAME]=e.id,n=String(o({scheme:"https",authority:be.WEBSERVER,path:"/app/view_in_timeline",query:s})),i=new Element("form",{action:n,method:"post"}),li.add_vars(i,{t:Be.read(Re.JS_CSRF_COOKIE),ns_ids:JSON.stringify(function(){var e,n,i;for(i=[],e=0,n=t.length;n>e;e++)r=t[e],i.push(r.ns_id);return i}()),ns_paths:JSON.stringify(function(){var e,n,i;for(i=[],e=0,n=t.length;n>e;e++)r=t[e],i.push(r.ns_path);return i}())}),$(document.body).__sert(i),i.submit()},build_revisions_uri:function(e,t,n){return null==n&&(n={}),n[D.UID_PARAM_NAME]=String(t),ne.getGandalfRule("revision-history-web")?o({path:"/history"+e}).updateQuery(n):o({path:"/revisions"+e}).updateQuery(n)}};var li,yn={}.hasOwnProperty;li=__CONDITIONAL_JS__.Forms=INLINE_JS.Forms=ut.Forms={submitOnlyOnce:function(){var e;return e=li.submitted!==!0,li.submitted=!0,e},disable:function(e){return e?setTimeout(function(){return e.disabled=!

    0},0):void 0},enable:function(e){return e?setTimeout(function(){return e.disabled=!1},0):void 0},_button_on_change:function(e,t,n,i){var r,o,s,a;return r=ke(e),r[t](),null==i&&(i=r.closest("form")),o=i[0],null==this.next_id&&(this.next_id=0),s=this.next_id++,null==this.initial_vars&&(this.initial_vars={}),this.initial_ vars[s]=this.collect_form_vars(o),r.attr("data-id",s),i.data("button-id",s),a=function(e){return function(){var i,a,_;r[t](),a=e.collect_form_vars(o),Object.keys(a).length!==Object.keys(e.initial_vars[s]).length&&r[n](),_=[];for(i in a)_.push(a[i]!==e.initial_vars[s][i]?r[n]():void 0);return _}}(this),i.change(a),i.find("input").filter(":text").on("input",a),i.find("textarea").on("input",a)},show_ button_on_change:function(e,t){return this._button_on_change(e,"hide","show",t)},hide_button_on_change:function(e,t){return this._button_on_change(e,"show","hide",t)},add_vars:function(e,t){var n,i,r;e=$(e),r=[];for(i in t)yn.call(t,i)&&(n=new Element("input",{type:"hidden",name:i}),n.setValue(t[i]),r.push(e.__sert(n))

    );return r},collect_form_vars:function(e,t){var n,i,r,o,s,a;for(null==t&&(t=!1),e=e||$(document.body),i=e.select("input").concat(e.select("textarea")).concat(e.select("select")),s={},r=0,o=i.length;o>r;r++)n=i[r],n.name&&"t"!==n.name&&!ke(n).attr("data-ignore-var")&&(a=n.getValue(),(a||t)&&("string"!=typeof a&&(a=a.join(",")),null!=s[n.name]?"string"==typeof s[n.name]?s[n.name]=[s[n.name],a]:s[n.name].push(a):s[n.name]=a));return s},add_loading:function(e,t){var n;return e?(e=$(e),n=new Element("img",{src:"/static/images/icons/ajax-loading-small-vfl3Wt7C

     _.gif"}),n.addClassName("text-img ajax_submit_loading"),"after"===t?ke(e).after(n):ke(e).before(n)):void 0},remove_loading:function(){return ke(".ajax_submit_loading").remove()},ui_form_submit:function(e,t){return t=t||e.action,e.ajax_submitted?!1:(e.ajax_submitted=!0,new h(ke(e),t,{data:li.collect_form_vars(e),success:function(t){return function(){var n,i;return i=ke(e).data("button-id"),null!=i?(n=ke(e).find("*[type=

     

     submit 

     ][data-id= 

     "+i+" 

     ]"),t.initial_vars[i]=t.collect_f

    orm_vars(e),n.hide()):void 0}}(this),complete:function(){return function(){return e.ajax_submitted=!1}}(this)}))},ajax_submit_obj:function(e){var t,n,i,r,o,s,a,

     _,l,u,d;return r=e.form,d=e.url,u=e.success_callback,i=e.fail_callback,t=e.button,a=e.more_vars,_=e.position,s=e.job,o=e.html_response,n=e.complete_callback,l=e.progress_text,li.ajax_submit(r,d,u,i,t,a,_,s,o,n,l)},ajax_submit:function(e,t,n,i,r,o,s,a,_,l,u){var d,c,h,f,p;if(null==_&&(_=!1),e.ajax_submitted)return!1;for(e.ajax_submitted=!0,p=ke(e).find(".suggestion-input"),c=0,h=p.length;h>c;c++)d=p[c],vi.blank(d.identify())();return r&&li.add_loading(r,s),f=li.collect_form_vars(e),o&&Object.extend(f,o),new Ajax.DBRequest(t||e.action,{noAutonotify:!0,parameters:f,job:a,progress_text:u,evalJSON:!1,onSuccess:function(e){return li.remov

  • 8/19/2019 3.3 Terminos y Definiciones en La Organizacion Educativa

    10/43

    e_loading(),n&&"function"==typeof n?n(e):void 0},onFailure:function(t){var n,r;return t&&(0===t.responseText.indexOf("err:")?(n=t.responseText.substr(4),0===n.indexOf("{")?(r=n.evalJSON(!0),li.fill_errors(e,r)):(_&&(n=new ot(n)),b.error(n))):b.error(),li.remove_loading(),i&&"function"==typeof i)?i(t):void 0},onComplete:function(t){var n,i,r;for(r=e.select(".suggestion-input"),n=0,i=r.length;i>n;n++)d=r[n],vi.blur_elm(d);return e.ajax_submitted=!1,l&&"function"==typeof l?l(t):void 0}}),!1},clear_errors:function(e){return e=e||$(document.body),this.hide_errors(e),e.select(".error-removable").invoke("remove")},fill_errors:function(e,t){var n,i,r,o,s,a;t=t||{},e=e||$(document.body),li.clear_errors(e);for(s in t)yn.call(t,s)&&(i=e.down("[data-error-field-name=

     

     "+s+" 

     ]")||e.down("[name= 

     "+s+" 

     ]"),i&&(n=new Element("br",{"class":"error-removable"}),r=new Element("span",{"class":"error-message error-removable"}),o=t[s],ft(o.message_html||o.message_text,"Error message must have a message_html or message_text property"),o.message_html?r.update(o.message_html):r.__date(o.message_text),ke(i).before(r),ke(i).before(n),a=ke(e).find("input[name=

     

     "+s+" 

     ], textarea[name= 

     "+s+" 

     ]"),a&&a.addClass("input-error")));return this.show_errors(e)},value:function(e){var t,n,i,r,o;for(i=$$(

     

     input[name=" 

     +e+ 

     "] 

     ),o=null,t=0,r=i.length;r>t;t++)n=i[t],o=$(n).getValue()||o;return o},postRequest:function(e,t,n){var i;return null==t&&(t={}),null==n&&(n={}),ft(null!=e,"postRequest missing action"),t.t=Be.read(Re.JS_CSRF_COOKIE),i=new Element("form",{action:e,method:"POST"}),n.target&&(i.target=n.target),document.body.appendChild(i),li.add_vars(i,t),i.submit()},hide_errors:function(e){var t,n,i,r,o;for(t=this.get_errors(e),r=[],n=0,i=t.length;i>n;n++)o=t[n],r.push(o.down("span.error-message")?o.hide():void 0);return r},show_errors:function(e){var t,n,i,r;for(t=this.get_errors(e),n=0,i=t.length;i>n;n++)r=t[n],r.down("span.e

    rror-message")&&r.show();return ke(".sick-input").find("label").css("top","")},get_errors:function(e){var t,n;return n=".error-bubble, .error-plain-text",t=e?e.select(n):$$(n)}},ke(function(){return li.show_errors()});var ui;ui=ut.ActAsBlock={elm_list:["margin-left","margin-right","padding-left","padding-right","border-left-width","border-right-width"],parent_list:["padding-left","padding-right","border-left-width","border-right-width"],register:function(e,t){var n,i,r,o;for(null==t&&(t=document.body),r=$(t).getElementsByClassName("act_as_block"),o=[],n=0,i=r.length;i>n;n++)e=r[n],o.push(this.resize(e));return o},resize:function(e){var t,n,i,r;return e=$(e),n=e.up(),t=Kt.sumStyles(e,this.elm_list),i=Kt.sumStyles(n,this.parent_list),e.style.width="1px",r=n.getWidth()-t-i,r>0?e.style.width=r+"px":void 0}};var di;di=ut.BrowseStyleRows={register_all:function(){var e,t,n,i;for(n=$$(".bs-row"),e=0,t=n.length;t>e;e++)i=n[e],this.register(i);return Event.observe(document,"click",this.kill_current.bind(this)),ke(document).on("dropdow

    n-opened",this.kill_current.bind(this))},register:function(e){var t;return e=$(e),e.db_observe("mouseover",this.mouseover.bind(this)),e.db_observe("mouseout",this.mouseout.bind(this)),t=e.down(".action-button"),t?t.db_observe("click",this.click.bind(this)):void 0},mouseover:function(e,t){return t.hasClassName("no-hover")?void 0:t.addClassName("hover")},mouseout:function(e,t){return t.removeClassName("hover")},click:function(e,t){var n,i,r;if("A"!==e.target.tagName)return i=t.up(".bs-row"),Event.stop(e),i.hasClassName("selected")?void this.kill_current(!1):(ke(document).trigger("dropdown-opened"),this.kill_current(!1),r=$(e.target),r.match(".bs-actions-list *")||i.addClassName("selected"),n=r.hasClassName("bs-row")?r:r.up(".bs-row"),n.style.zIndex=9)},kill_current:function(){var e,t,n,i,r;for(i=$$(".bs-row.selected"),r=[],t=0,n=i.length;n>t;t++)e=i[t],e.removeClassName("selected"),r.push(e.style.zIndex="");return r}};var ci;ci=ut.Bubble={make:function(e,t,n,i,r){var o,s,a,_,l,u,d,c,h,f,p,m,v,g,w,b,y,k,E,x;return null==t&&(t="

    left"),r=null!=r?r:{},["left","right"].contains(t)?(n=n||"middle",ft(["top","middle","bottom"].contains(n),"expected tail position [

     

     top 

     , 

    middle 

     , 

    bottom 

     ],got "+n)):["bottom","top"].contains(t)?(n=n||"center",ft(["left","center","right"].contains(n),"expected tail position [

     

     left 

     , 

    center 

     , 

    right 

     ], got "+n)):["none"].contains(t)||ft(!1,"unexpected tail side, got "+t),m=new Element("table"),"titled"===r.style?(m.addClassName("bluebubble"),v="bluebubble"):(m.addClassName("bubble"),v="bubble"),i&&(m.style.width=i+"px"),w=new Element("tbody"),k=new Element("tr"),b=new Element("td"),b.addClassName("tl"),p=new Element("td"),p.addClassName("t"),"titled"===r.style&&i&&(p.style.width=i-42+"px"),y=new Element("td"),y.addClassName("tr"),"top"===t&&(g=new Element("img",{src:"/static/images/"+v

  • 8/19/2019 3.3 Terminos y Definiciones en La Organizacion Educativa

    11/43

    +"_arrow_top.png"}),g.addClassName("tarrow"),"titled"===r.style?(g.addClassName("arrow-"+n),s=new Element("div"),s.addClassName("arrow-container"),i&&(s.style.width=i-42+"px"),s.__sert(g),p.__sert(s)):(p.style.textAlign=n,p.__sert(g))),k.__ sert(b),k.__sert(p),k.__sert(y),w.__sert(k),E=new Element("tr"),c=new Element("td"),c.addClassName("l"),"left"===t&&(o="titled"===r.style?new Element("img",{src:"/static/images/bluebubble_arrow_left-vfl8zzy_-.png"}):new Element("img",{src:"/static/images/bubble_arrow-vfl8m7tk-.png"}),o.addClassName("arrow"),c.__sert(o),c.vAlign=n),d=new Element("td"),d.addClassName("c"),d.update(e),h=new Element("td"),h.addClassName("r"),"right"===t&&(f=new Element("img",{src:"/static/images/bubble_arrow_right-vflmW3_2s.png"}),f.addClassName("rarrow"),h.__sert(f),h.vAlign=n),E.__sert(c),E.__sert(d),E.__sert(h),w.__sert(E),x=new Element("tr"),l=new Element("td"),l.addClassName("bl"),a=new Element("td"),a.addClassName("b"),"bottom"===t&&(_=new Element("img",{src:"/static/images/"+v+"_arrow_bottom.png"}),_.addClassName("barrow"),"titled"===r.style?(_.addClassName("arrow-"+n),s=new Element("div"),s.addClassName("arrow-container"),i&&(s.style.width=i-42+"px"),s.__sert(_),a.__sert(s)):(a.style.textAlign=n,a.__sert(_))),u=new Element("td"),u.addClassName("br"),x.__sert(l),x.__sert(a),x.__sert(u),w.__sert(x),m.__sert(w),m}};var hi;hi=INLINE_JS.FreshDropdown=ut.FreshDropdown={show:function(e,t,n,i){var r,o,s,a;return null==i&&(i=!1),ke(document).trigger("dropdownOpened",[1]),r=ke(t),n||(n=r[0].offsetHeight+10),this.hide_all(),o=ke(e).show(),a=o[0].offsetWidth,s=r[0].offsetWidth,Fe.clone_position(o,r,{setHeight:!1,setWidth:!1,offsetLeft:-1*(a-s)+22,offsetTop:n}),i&&o.width(a),r.addClass("pressed"),function(){return function(){return document.observe("click",hi.hide_all)}}(this).defer()},hide_all:function(){var e,t;return t=ke(".freshdropdown-menu"),e=0,t.each(function(){return k

    e(this).is(":visible")?e+=1:void 0}),t.hide(),ke(document).trigger("dropdownClosed",[e]),$$(".freshdropdown-button").invoke("removeClassName","pressed"),document.stopObserving("click",hi.hide_all)}};var fi;fi=ut.JumpWatcher={inverval:null,last_hash:null,last_page_offset:0,check:function(){return window.location.href.endsWith("#")&&0===window.pageYOffset&&0!==fi.last_page_offset?this.report():(this.last_page_offset=window.pageYOffset,this.last_hash=o.parse(window.location.href).fragment)},report:function(){return clearInterval(fi.interval),pt("Hash jump detected, last hash = "+this.last_hash+". You may have an onclick handler that isn

     

     t firing, or you are not preventing the default action (eg. by returning false in your handler)")}};var pi;pi=__CONDITIONAL_JS__.Modal=INLINE_JS.Modal=ut.Modal={KEY_SCOPE:"modal",width:640,vertical_offset:90,show:function(e,t,n,i,r,o,s,a,

     _){var l,u,d,c,h,f;return null==n&&(n=!1),null==i&&(i=!1),null==r&&(r=!1),null==o&&(o=!1),null==s&&(s=""),null==a&&(a=!0),null==_&&(_=!1),pi.shown()&&pi._cleanu

    p(),r=r||this.width,u="#modal-content .error-message, #modal-content .error-removable, #modal-content .error-bubble",$$(u).invoke("hide"),ni.uploading&&!o?(ht(Pt("You can

     

     t do this while uploading.")),!1):(ft(t,"Missing modal content!"),h=this.vars._prev_scope,this.vars=n||{},this.vars._prev_scope=h,$("modal").setStyle({width:r+"px",margin:"0 0 0 "+Math.floor(-r/2).toString()+"px"}),this.vars.extra_class="",s&&($("modal").addClassName(s),this.vars.extra_class=s),o||(ni.num_files()&&(oi.reset(),ni.clear()),c=Kt.childElement($("modal-content"),0),c&&c!==t&&$("grave-yard").__sert(c),l=new Element("div"),l.update(t),$("modal-content")._ 

     _sert(l),t.show&&t.show(),Element.show("modal")),ke("#modal-overlay").off("click"),a?ke("#modal-overlay").on("click",function(e){return pi.hide(null,!1,!0),e.preventDefault(),e.stopPropagation()}):ke("#modal-overlay").on("click",function(e){return e.preventDefault(),e.stopPropagation()}),this.fix_position(),$("modal-overlay").s

    how(),$("modal-behind").setStyle({width:r+20+"px",margin:"0 0 0 "+Math.floor(-r/2-10).toString()+"px"}),ke("#modal-behind").css("opacity",.2),$("modal-behind").show(),i?$("modal-content").select("#"+i.id).first().focus():Kt.ie||(d=$("modal").down("input[type=submit]")||$("modal").down("input[type=button]"),d&&d.focus()),this.track_id||this.track_resizes(),e?(Kt.isElm(e)?ke("#modal-title").html(e):ke("#modal-title").text(e),ke("#modal-title").show(),f=ke("#modal-title").text(),Vt("Modal.show:",f)):(ke("#modal-title").hide(),Vt("Modal.show")),ui.register(!1,"modal"),this.keydownHandler=this.keydown.bind(this),document.observe("keydown",this.keydownHandler),$("modal-content").style.height="auto",key.getScope()!==this.KEY_SCOPE&&(this.vars._prev_scope=key.getScope()),key.setScope(this.KEY_SCOP

  • 8/19/2019 3.3 Terminos y Definiciones en La Organizacion Educativa

    12/43

    E),this.prevent_hide_if_loading=_,ke("#modal").find("input").filter(":visible:first").focus(),this.in_viewport()&&(this.scroll_locked=!0,Fe.scroll_lock_document()),ke(document).trigger("modalOpened",[1]),!1)},in_viewport:function(){var e,t,n,i,r;return e=ke("#modal"),t=e.height(),r=e.width(),n=Fe.viewport_dimensions(),i=Fe.viewport_offset(e),i.left>0&&i.top>0&&i.left+r

  • 8/19/2019 3.3 Terminos y Definiciones en La Organizacion Educativa

    13/43

     0},setValue:function(e,t){var n;return(n=$(e))?(n.addClassName("suggestion-input-unfaded"),n.setValue(t),n.defaulted=!1):void 0}};var gi;gi=ut.TitleBubble=function(){var e,t,n,i,r,o,s;return s=0,e=0,o=function(e){return s=e},r=function(i){var r,o,a,_,l,u,d,c,h,f,p;return o=ke(i.currentTarget),p=o.attr("title"),(null!=p?p.length:void 0)&&(o.attr("data-title",p),o.removeAttr("title")),l=parseInt(o.data("title-delay")),_="title-bubble-"+e++,o.data("bubble-id",_),r=ke("",{id:_,"class":"title_bubble_container"}),l||(r.css({opacity:0}),r.addClass("has-transition")),o.hasClass("white")&&r.addClass("white"),o.hasClass("black")&&r.addClass("black"),r.text(o.attr("data-title")),c=o.attr("data-title-html"),r.html(c),f="yes"!==o.attr("data-title-hide-tail"),f&&(a=ke("",{"class":"tail"}),r.append(a)),ke(document.body).append(r),d=n(o[0],r[0]),u=t(d,r[0],o[0]),Fe.clone

     _position(r,o,{setWidth:!1,setHeight:!1,offsetTop:u.top-s,offsetLeft:u.left}),r.addClass("position-"+d),f&&Fe.clone_position(a,o,{setWidth:!1,setHeight:!1,setTop:!1,offsetLeft:u.left+u.tail_offset_left+ke(r).outerWidth()/2}),h=function(){var e;if(r.data("pending-delay")&&o.data("bubble-id")===_)return e=parseInt(o.data("title-fade-time"))||400,r.fadeIn(e)},l?(r.hide(),r.data("pending-delay",!0),setTimeout(h,l)):r.css({opacity:""})},n=function(e,t){var n,i,r;if(e=$(e),r=e.getAttribute("data-title-position"),n=document.viewport.getDimensions(),i=e.viewportOffset(),"above"!==r&&"below"!==r&&"right"!==r&&"left"!==r&&(r="above"),"left"===r){if(i.left

  • 8/19/2019 3.3 Terminos y Definiciones en La Organizacion Educativa

    14/43

    t.observe(_r.ADD,function(e){return function(){return e.schedule_reset()}}(this)),document.observe(_r.REMOVE,function(e){return function(){return e.schedule_reset()}}(this)),document.observe(_r.MOVE,function(e){return function(){return e.schedule_reset()}}(this))},schedule_reset:function(){return this.loaded=!1},reset:function(e){var t,n,i,r,o,s,a;return t={url:"/ajax_subtreeview",type:"post",data:ke.extend({},this.ajax_params),success:function(t){return function(n){var i,r;i=[];for(r in t.tv)t.tv.hasOwnProperty(r)?(t.tv[r].viewdiv.down(".treeview-folders").update(n),i.push(e&&e.onSuccess?e.onSuccess(n):void 0)):i.push(void 0);return i}}(this)},(null!=e?e.user:void 0)?(e.user.id!==(null!=(n=this.user)?n.id:void 0)&&(o=ke("

    ",{id:"treeview-loading"}),s=ke("",{src:"/static/images/icons/ajax-loading-small-vfl3Wt7C_.gif"}),o.append(s),a=" "+Pt("Loading your folders"),o.append(a),ke("#dest-treeview .treeview-folders").html(o),this.user=e.user),t.subject_user=e.user,r=K.get_role_title(e.user),i=K.get_viewer().is_paired?e.user.is_team?"s_briefcase":"s_house":"dropbox",r||(r=Pt("Dropbox")),ke("#first-treeview-link span").text(r),Q.replace(ke("#root-img")[0],"web",this.role_icon,i),this.role_icon=i):ke("#first-treeview-link span").text(Pt("Dropbox")),ke.ajax(t)},toggle:function(e,t){var n;return Event.stop(e),n=this.tv[t||"treeview"],n.shown?(n.shown=!1,this.hide(e,t)):(n.shown=!0,this.show(e.target,t)),!1},hide:function(e,t){var n;return n=this.tv[t||"treeview"],e&&$(e.target).descendantOf(n.viewdiv)?void 0:(n.viewdiv.hide(),Event.stopObserving(window,"click",n.hidefunc),n.shown=!1)},show:function(e,t){var n,i;return i=this.tv[t||"treeview"],e=$(e),e.blur(),n=e.cumulativeOffset(),i.viewdiv.setStyle({top:n.top+e.getHeight()+"px",left:n.left-4+"px"}),i.viewdiv.show(),Event.observe(window,"click",i.hidefunc)},toggleNode:function(e){var t;return e=$(e),t=e.down("img"),t.className.match("b

    ullet_plus")?Q.replace(t,"web","bullet_plus","bullet_minus"):Q.replace(t,"web","bullet_minus","bullet_plus"),e.up().next("div").toggle(),e.blur(),!1},toggleNodeAjax:function(e,t,n){var i,r;return e.fetched_children?this.toggleNode(e):(e=$(e),i=e.down("img"),r=Q._get(i),i.src="/static/images/icons/ajax-loading-small-vfl3Wt7C_.gif",ke.ajax({url:"/ajax_subtreeview"+t,type:"post",data:ke.extend({},this.ajax_params),subject_user:n,success:function(t){return function(n){var o;return o=new Element("div",{style:"display: none;"}).update(n),e.up().__sert({after:o}),e.fetched_children=!0,Q._set(i,r),t.toggleNode(e)}}(this),complete:function(){return/loading/.match(i.src)?Q._set(i,r):void 0}}),!1)},handle:function(e,t){var n,i;return n=$H(this.tv).keys(),(i=$(t).ancestors().find(function(e){return n.include(e.id)}))?(i=this.tv[i.id],ke(document).trigger("db:treeview_selected",[e]),i.handler&&i.handler(e,t),i.autohide&&this.hide(i.id),!1):void 0},move:function(e,t,n){var i;return i=$(e),this.loaded?n&&n.onSuccess&&n.onSuccess():this.res

    et({onSuccess:function(i){return function(){return i.loaded=1,i.move(e,t,n)}}(this),user:null!=n?n.user:void 0}),ft(i,"Couldn 

     t find tree_id"),ft($(t),"Couldn 

     t find location_id"),$(t).appendChild(i),i.show()}};var yi;yi=ut.ULSelectMenu=function(){var e,t,n,i,r,o,s,a,_,l,u;return e=function(e){return e.removeClassName("shown")},u=function(e){return e.toggleClassName("shown")},s=function(){return this.removeClassName("hover")},o=function(){return this.addClassName("hover")},a=function(e,t){var n,i,r,o;for(r=[],n=0,i=t.length;i>n;n++)o=t[n],r.push(e.insert(o));return r},i=function(e,t,n){return a(e,n),e.firstChild!==t?e.__sert({top:t}):void 0},_=function(e,t){var n;return n="selected",ke(e).find("."+n).removeClass(n),ke(t).addClass(n)},l=function(e,t){var n,i,r,o,s;for(o=e.select("li"),s=[],i=0,r=o.length;r>i;i++)n=o[i],s.push(n.getAttribute("data-value")===t?_(e,n):void 0);return s},r=function(t,n,r){return function(){return t.hasClassName("selected")?(i(n,t,r),u(n)):(_(n,t),n.fire("db:change",t.getAttribute("data-value")),e(

    n))}},t=function(t){var n,i,a,_,l,u,d,c;if(_=t.select("li"),ft(_.length,"Empty list of options "+t.identify()),l=void 0,1===_.length)t.addClassName("one");else{for(i=0,a=_.length;a>i;i++)n=_[i],d=n.getAttribute("data-value"),ft(d,n.identify()+" missing data value"),n.observe("click",r(n,t,_)),n.observe("mouseenter",o),n.observe("mouseleave",s),n.hasClassName("selected")&&(l=n);$(document.body).observe("click",function(n){return $(n.target).up(".ul_select_menu")!==t?e(t):void0})}return l||(l=_[0]),l.addClassName("selected"),c=new Element("span"),u=l.getDimensions(),c.setStyle({width:u.width+"px",height:u.height+"px",position:"relative",display:"inline-block"}),t.wrap(c)},n=function(){var e,n,i,r,o;for(r=$$(".ul

     _select_menu"),o=[],n=0,i=r.length;i>n;n++)e=r[n],o.push(t(e));return o},ke(n),{

  • 8/19/2019 3.3 Terminos y Definiciones en La Organizacion Educativa

    15/43

    init:function(e){return t(e)},set_selected_by_value:l}}();var ki;ki=ut.DBCalendar=Class.create({initialize:function(e,t){return this.options=t||{},this.container=$(e),ft(this.container,"Couldn

     

     t find the element"),this.today=new Date,this.options.disable_future&&(this.options.last_day=Kt.start_of_day(this.options.last_ day||this.today)),this.options.disable_past&&(this.options.first_day=Kt.start_of

     _day(this.options.first_day||this.today)),this.view_date=Kt.start_of_day(this.options.selected_date||this.today),this.selected_date=Kt.start_of_day(this.options.selected_date||this.today),this.render()},_change_month:function(e,t){return Event.stop(e),this.view_date.setMonth(t),this.render()},is_valid_date:function(e,t,n,i,r){var o;return e=parseInt(e,10),t=parseInt(t,10),n=parseInt(n,10),i=parseInt(i,10),r=parseInt(r,10),i=i||1970,r=r||(new Date).getFullYear()+1,t+=1,i>n?!1:n>r?!1:1>t||t>12?!1:0>=e?!1:2===t?(o=n%4===0&&(n%100!==0||n%400===0),o?29>=e:28>=e):4===t||6===t||9===t||11===t?30>=e:31>=e},change_date:function(e,t,n){var i;if(this.is_valid_date(e,t,n))return i=n!==this.view_date.getFullYear()||t!==this.view_date.getMonth(),this.selected_date=new Date(n,t,e),i?(this.view_date.setMonth(t),this.view_date.setFullYear(n),this.render()):(ke(this.container).find(".selected").removeClass("selected"),ke(this.container).find("a#day"+e+"-"+t).addClass("selected")),this.options.onDateChange?this.options.onDateChange(this.selected_date):void 0},render:function(){var e,t,n,i,r,o,s,a,_,l;return t=this.render_days(),i=ke(".current-month",t),s=i.first().data("date"),o=i.last().data("date"),l=s=this.options.last_day,e=new Element("div"),e.addClassName("calendar clearfix"),_||(this._next_month=function(e){return this._change_month(e,this.view_date.getMonth()+1)}.bind(this),r=new Element("a"),r.addClassName("changemonth next"),r.update(Q.make("web","arrowright",{})),Event.observ

    e(r,"click",this._next_month),e.__sert(r)),l||(this._prev_month=function(e){return this._change_month(e,this.view_date.getMonth()-1)}.bind(this),a=new Element("a"),a.addClassName("changemonth prev"),a.update(Q.make("web","arrowleft",{})),Event.observe(a,"click",this._prev_month),e.__sert(a)),n=new Element("h5"),n.update(Pt("%(month)s %(year)s",{comment:"For example

     

    January 2010 

     . This is used aspart of a calendar."}).format({month:re.month_name(this.view_date.getMonth()),year:this.view_date.getFullYear()})),e.__sert(n),e.__sert(t),this.container.__date(e)},render_days:function(){var e,t,n,i,r,o,s,a,_;for(t=new Date(this.view_date.getFullYear(),this.view_date.getMonth(),1),a=t.getDay(),e=new Element("div"),e.addClassName("days"),n=r=_=a;0>=_?0>r:r>0;n=0>=_?++r:--r)s=new Date(t.getFullYear(),t.getMonth(),t.getDate()),s.setDate(s.getDate()-n),e.__sert(this.render_day(s,!0));for(i=new Date(this.view_date.getFullYear(),this.view_date.getMonth(),1);i.getMonth()===this.view_date.getMonth();)e.__sert(this.render_day(i)),i=new Date

    (this.view_date.getFullYear(),this.view_date.getMonth(),i.getDate()+1);for(o=new Date(this.view_date.getFullYear(),this.view_date.getMonth()+1,0);6!==o.getDay();)o=new Date(o.getFullYear(),o.getMonth(),o.getDate()+1),e.__sert(this.render_day(o,!0));return e},render_day:function(e,t){var n,i;return i=!t,this.options.last_day&&(t=t||e>this.options.last_day),this.options.first_day&&(t=t||e

  • 8/19/2019 3.3 Terminos y Definiciones en La Organizacion Educativa

    16/43

    is)),$(document.body).observe("click",this.hide_cal.bind(this)),this.onDateChange(o)},show_cal:function(e){var t;return e&&Event.stop(e),t=$(e.target),t.match(".cal-container")||t.up(".cal-container")?void 0:(ke(".cal-container").hide(),this.cal_container.show())},hide_cal:function(){return this.cal_container.hide()},onDateChange:function(e){return this.input.value=Kt.to_mysql_date(e,!1),this.display.update(jr.localize(e)),this.hide_cal()}});var xi;xi=ut.TextInputDatePicker=Class.create({initialize:function(e,t){var n,i,r,o;return this.options={include_seconds:!0,include_microseconds:!0,choose_eod:!1},Object.extend(this.options,t||{}),this.input=$(e),ft(this.input,"Couldn

     

     t find the element "+e.toString()),r=new Date,o=this.input.value?Kt.from_mysql_date(this.input.value):!1,i=new Date(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()),this.cal_icon=Q.make("web","calendar_view_month",{align:"absmiddle"}),this.cal_container=new Element("div",{id:"cal_container_"+e,style:"display: none; position: absolute; z-index: 1"}),this.calendar=new ki(this.cal_container,{onDateChange:this.onDateChange.bind(this),last_day:i,selected_date:o}),this.input.__sert({after:this.cal_icon}),this.cal_icon.observe("click",this.toggle_cal.bindAsEventListener(this)),n=ke(this.input),Fe.clone_position(ke(this.cal_container),n,{setWidth:!1,setHeight:!1,offsetTop:n[0].offsetHeight}),this.cal_icon.__sert({after:this.cal_container})},toggle_cal:function(e){return e&&Event.stop(e),this.cal_container.toggle()},hide_cal:function(e){return e&&Event.stop(e),this.cal_container.hide()},onDateChange:function(e){return this.options.choose_eod&&e.setTime(Kt.start_of_day(e).getTime()+86399999),this.input.value=Kt.to_mysql_date(e,this.options.include_seconds,this.options.include_microseconds),this.hide_cal()}}),U.window_load(ui.register.bind(ui)),ke(mi.init.bind(mi)),ke(vi.register_all.bind(vi)),Event.observe(window,"scroll",funct

    ion(){return gi.hide_all()}),ke(function(){return fi.interval=setInterval(fi.check.bind(fi),500),gi.init()});var Si,bn=function(e,t){function n(){this.constructor=e}for(var i in t)yn.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},yn={}.hasOwnProperty;Si=INLINE_JS.ChangeNameModal=ut.ChangeNameModal=function(e){function t(){t.__super__.constructor.call(this,{element_id:"change-name-modal"}),this.on_confirm_button_click=function(e){return function(t){var n,i,r;return t.preventDefault(),n=ke(t.target),i=n.closest("form"),r=function(){return e.hide(),location.reload()},li.ajax_submit(i[0],!1,r,null,n[0])}}(this)}return bn(t,e),t}(xt);var Ci,Ti,kn=function(e,t){return function(){return e.apply(t,arguments)}},bn=function(e,t){function n(){this.constructor=e}for(var i in t)yn.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},yn={}.hasOwnProperty;Ti=ut.ManageAliasModal=function(e){function t(e){this.options=e,this._poll_until_verified

    =kn(this._poll_until_verified,this),this._get_params_from_target=kn(this._get_params_from_target,this),this._on_load=kn(this._on_load,this),this._show_action_panel=kn(this._show_action_panel,this),this._input_enter_handler=kn(this._input_enter_handler,this),this.resend_verify=kn(this.resend_verify,this),this.remove_alias=kn(this.remove_alias,this),this.add_alias=kn(this.add_alias,this),this.refresh_alias=kn(this.refresh_alias,this),this.on_show=kn(this.on_show,this),t.__super

     __.constructor.call(this,this.options)}return bn(t,e),t.prototype.before_show=function(e){return t.__super__.before_show.call(this,e),this.polling=0,e.find(".alias-action").on("click",this._show_action_panel),e.find(".alias-action-submit").on("click",this.add_alias),e.find("form").submit(function(){return!1}),e.find(".alias-action-inputs input").on("keyup",this._input_enter_handler)},t.prototype.on_show=function(){return this.refresh_alias(!0,this._poll_until_verified)},t.prototype.refresh_alias=function(e,t){return null==e&&(e=!0),e&&li.clear_errors(),n

    ew Ajax.DBRequest("/account/alias/get",{subject_user:this.options.subject_user,onSuccess:function(e){return function(n){return e.$modal_window.find(".dynamic-content").html(n.responseText),e._on_load(n),"function"==typeof t?t():void 0}}(this),onFailure:function(e){return function(){return e.hide()}}(this)})},t.prototype.add_alias=function(e){var t,n,i,r;return e.preventDefault(),n=ke(e.currentTarget).closest("form"),t=n.find(".alias-action-submit"),r={},r[D.UID_PARAM_NAME]=this.options.subject_user.id,i=function(e){return function(){var t;return e.$modal

     _window.find(".alias-action-inputs input").val(""),e.polling=0,t=e.polling?null:e._poll_until_verified,e.refresh_alias(!0,t)}}(this),li.ajax_submit(n[0],!1,i,!1,t[0],r,"before")},t.prototype.remove_alias=function(e){var t;return e.preventDe

  • 8/19/2019 3.3 Terminos y Definiciones en La Organizacion Educativa

    17/43

    fault(),t=this._get_params_from_target(e.currentTarget),new Ajax.DBRequest("/account/alias/remove",{subject_user:this.options.subject_user,parameters:t,onSuccess:function(e){return function(){return e.refresh_alias()}}(this)})},t.prototype.resend_verify=function(e){var t;return e.preventDefault(),t=this._get_params_from_target(e.currentTarget),new Ajax.DBRequest("/account/alias/send_verify",{subject_user:this.options.subject_user,parameters:t,onSuccess:function(e){return function(){return e.refresh_alias()}}(this)})},t.prototype._input_enter_handler=function(e){return e.preventDefault(),e.stopPropagation(),13===e.which?this.add_alias(e):void 0},t.prototype._show_action_panel=function(e){var t,n;return e.preventDefault(),n=ke(e.currentTarget).data("target"),this.$modal_window.find(".alias-action-panel").hide(),t=this.$modal_window.find("#"+n).show(),t.find("input:visible:enabled:first").focus()},t.prototype._on_load=function(){return di.register_all(),this.$dynamic=this.$modal_window.find("#alias-list-container"),this.$dynamic.on("click",".alias-remove",function(e){return function(t){return e.remove_alias(t)}}(this)),this.$dynamic.on("click",".alias-verify",function(e){return function(t){return e.resend_verify(t)}}(this))},t.prototype._get_params_from_target=function(e){var t,n,i;return t=ke(e),i=t.data("alias-type"),n=t.closest(".alias-row").find(".alias-text").text(),{alias:n,alias_type:i}},t.prototype._poll_until_verified=function(){var e,t,n,i;return t=5,e=60,n=function(e){return function(){return e.refresh_alias(!1,e._poll_until_verified)}}(this),i=this.$dynamic.find(".alias-verify").length,i&&this.pollingn;n++)r=e[n],t.push(Ai._tmpl({row:r,Sprite:Q}));return $("bonus-table").__sert(t)},get_next_page:function(){return Ai._fetching_page?void 0:(Ai._fetching_page=!0,new Ajax.DBRequest("/account/bonus_page/"+Ai._next_page,{onSuccess:function(e){var t,n,i;return t=e.responseText.evalJSON(),i=t.rows,n=t.has_more,Ai._render(i),$("bonus-loading").hide(),n?(Ai._next_page+=1,$("load-more-bonus").show()):$("load-more-bonus").hide(),Ai._fetching_page=!1},subject_user:this.user_id}))},_ 

    max_referral_over:function(e){var t,n,i;return n=ke(e.currentTarget),i=Pt("You 

     ve earned the maximum amount of referral space. Thanks for inviting people to Dropbox!"),t=ke(ci.make(i,"right","middle")),Element.absolutize(t[0]),n.append(t),Fe.clone_position(t,n,{setWidth:!1,setHeight:!1}),t.css({width:"200px",left:parseInt(t.css("left"),10)-210+"px",top:parseInt(t.css("top"),10)-55+"px"})},_max_referral_out:function(){var e,t,n,i,r;for(i=ke(".reached-max-referral-bonus .bubble"),r=[],t=0,n=i.length;n>t;t++)e=i[t],r.push(e.remove());return r},listen:function(){return ke("#load-more-bonus").on("click",Ai.get_next_page.bind(Ai)),ke(document).on("mouseenter",".reached-max-referral-bonus",Ai._max_referral_over),ke(document).on("mouseleave",".reached-max-referral-bonus",Ai._max_referral_out)},toggle:function(){return ke("#bonus-list").is(":visible")?(this.hide(),ke("#space-earned-link").text(Pt("View all space earned"))):(this.show(),ke("#space-earned-link").text(Pt("Hide space earned")))},show:function(){return ke("#bonus-list").s

    lideDown(150)},hide:function(){return ke("#bonus-list").slideUp(150)}};var Di,Oi,Ni;Di=INLINE_JS.DowngradeReasons=ut.DowngradeReasons={reasons:{},addReason:function(e){return this.reasons[e]=!0},addReasons:function(e){var t,n,i,r;for(r=[],t=0,i=e.length;i>t;t++)n=e[t],r.push(this.addReason(n));return r},change:function(e,t,n){var i,r,o,s,a,_;e=parseInt(e,10),r=$(t),ft(r,"Couldn

     

     t find container for DowngradeReason"),i=!1,a=this.reasons;for(s in a)o=a[s],_=$(n+s),ft(_,"Couldn

     

    t find container for ",n+s),o&&parseInt(s,10)===e?(_.show(),i=!0):_.hide();return i?r.show():r.hide()}},Oi=ut.DowngradeReasons2={init:function(){var e,t,n,i;for(i=["input[name=downgrade_reason_id]","input[name=other_reason_id]"],e=0,t=i.length;t>e;e++)n=i[e],ke(n).change(function(e){var t;return t=e.target.id.indexOf("

  • 8/19/2019 3.3 Terminos y Definiciones en La Organizacion Educativa

    18/43

    other")>=0,Oi.change(t,e.target.getValue())});return ke(".shared-additional-info").attr("name","shared_additional_info")},change:function(e,t){var n;return ke(".downgrade-other-reason .error-message").hide(),e?void 0:(n="#downgrade-info-"+t,ke(".downgrade-info").hide(),ke(n).show(),ke(".downgrade-info textarea").removeAttr("name"),ke(n+" textarea").attr("name","additional_info"),ke("input[name=other_reason_id]").removeAttr("checked"))}},Ni=ut.DowngradeSurvey={init:function(){var e;return e="#downgrade-survey-form",ke(""+e).on("submit",function(){return function(t){var n,i;return i=ke(e+" input[name=other_reason_id]:checked").length,n=ke(e+" input[id=downgrade-radio-8]"),n.is(":checked")&&0===i?(ke(".downgrade-other-reason .error-message").show(),t.preventDefault()):void 0}}(this))}};var $i;$i=INLINE_JS.GetSpace=ut.GetSpace={_current_space:null,_why_msg:null,_twitter_url:null,offer_highlight_color:"#ffa",init:function(e,t,n){var i;return $i._current_space=e,$i._why_msg=t,$i._twitter_url=n,$("space-actions").on("click",".space-action",$i.perform_action),i=o.parse(window.location.href).fragment,i?$i.highlight_offer(i):void 0},highlight_offer:function(e){var t,n;return t=ke("#"+e),n=t.css("background-color"),t.css("background-color",$i.offer_highlight_color).delay(2e3).animate({"background-color":n}).queue(function(){return t.css("background-color","")})},perform_action:function(e){var t,n;return n={contact_sales:$i._contact_sales,contact_support:$i._contact_support,teams:$i._teams,upgrade:$i._upgrade,plans:$i._plans,refer:$i._refer,get_started:$i._get_started,fb_link:$i._fb_link,twitter_link:$i._twitter_link,twitter_follow:$i._twitter_follow,why_like:$i._ why_like,mailbox_link:$i._mailbox_link},t=$(e.target),t.hasClassName("space-action")||(t=t.up(".space-action")),n[t.id]()},_teams:function(){return window.location.href="/business?tk=dropbox&ag=getspace&ad=v1"},_contact_sales:function(){ret

    urn window.location.href="mailto:[email protected]"},_contact_support:function(){return window.location.href="/support"},_plans:function(){return window.location.href="/plans"},_upgrade:function(){return window.location.href="/upgrade"},_refer:function(){return window.location.href="/referrals"},_get_started:function(){return window.location.href="/gs"},_ fb_link:function(){return B.do_auth(function(){return $i._refresh_link_bonuses(),$i._completed($("fb_link"))},K.get_viewer().personal_user.id)},_twitter_link:function(){return Vr.do_auth(function(){return $i._refresh_link_bonuses(),Vr.set_is_authed(K.get_viewer().personal_user.id,!0),$i._completed($("twitter_link"))},K.get_viewer().personal_user.id)},_twitter_follow:function(){return Vr.is_authed(K.get_viewer().personal_user.id)?$i.follow_dropbox():Vr.do_auth($i.follow_dropbox,K.get_viewer().personal_user.id)},_why_like:function(){return pi.show(Pt("Tell us why you love Dropbox"),$("why-i-like-modal")),$("why-i-like-input").focus(),

    Kt._track_twitter_chars_left("why-i-like-input",90)},_mailbox_link:function(){return window.location.href="http://www.mailboxapp.com/"},follow_dropbox:function(){return Vr.is_authed(K.get_viewer().personal_user.id)||($i._refresh_link_bonuses(),Vr.set_is_authed(K.get_viewer().personal_user.id,!0)),Vr.follow_dropbox({showWorking:function(){return $("twitter_follow").down(".title").__date(Pt("Following Dropbox on Twitter..."))},onFailure:function(){return $("twitter_follow").down(".title").__date(Pt("Follow Dropbox on Twitter"))},onSuccess:function(){return $("twitter_link")&&$("twitter_link").visible()&&$i._completed($("twitter_link")),$i._completed($("twitter_follow"))}},K.get_viewer().personal_user.id)},submit_ why:function(){return $i._why_msg=$F("why-i-like-input"),li.ajax_submit($("why-i-like-form"),!1,function(){return pi.hide(),$i._completed($("why_like"))},!1,$("why-i-like-submit"))},_completed:function(e){var t;return e.addClassName("completed"),e.down(".icon-col").__date(Element("img",{src:"/static/images/check_36-vfl

    imxFPn.png"})),ke(e).css("opacity",.5).fadeTo(500,1),setTimeout(function(){return ke(e).css("opacity",1).slideUp().animate({opacity:0},{queue:!1,duration:"normal"})},1500),t=parseInt(e.down(".space").readAttribute("data-space"),10),$i._current_space+=t,$("current-space").__date(q.format_bytes($i._current_space)),$("current-space").addClassName("updated"),setTimeout(function(){return $("current-space").removeClassName("updated")},5e3)},_refresh_link_bonuses:function(){return new Ajax.DBRequest("/social_recheck")}};var Ii;Ii=ut.Help={toggle_more_help:!1,show_os:function(e,t,n){return t=$(t),$$(".os-filter").invoke("removeClassName","selected"),t.addClassName("selected"),$$(".help-os-section").invoke("hide"),$$(".help-os-"+n).invoke("show"),Event.stop(e)},vote:function(e,t){return new Ajax.DB

  • 8/19/2019 3.3 Terminos y Definiciones en La Organizacion Educativa

    19/43

  • 8/19/2019 3.3 Terminos y Definiciones en La Organizacion Educativa

    20/43

    return this.$modal_window.find("[type=button]").removeAttr("disabled")},t.prototype._set_delete_text=function(e){return this.$modal_window.find(".delete_data_label").text(e)},t.prototype._get_unlink_select=function(){return this.$modal_window.find(".unlink-select select").val()},t.prototype._clear_delete_checkbox=function(){return this.$modal_window.find(".delete_data").prop("checked",!1)},t.prototype.on_show=function(){var e;return this._clear_delete_checkbox(),this.delete_support_type===c.DELETE_ON_UNLINK_OLD_CLIENT?this.$modal_window.find(".unlink_host_modal_content").addClass("show_old_client_modal"):this.delete_support_type===c.DELETE_ON_UNLINK_UNSUPPORTED?this.$modal_window.find(".unlink_host_modal_content .unlink_host_form").addClass("hidden"):this.delete_support_type===c.DELETE_ON_ UNLINK_SUPPORTED_TEAM_ONLY?(this.$modal_window.find(".unlink-choice").change(function(e){return function(){return e._get_unlink_select()===D.ROLE_PERSONAL?e.$modal_window.find(".new_client").hide():e.$modal_window.find(".new_client").show()}}(this)),this._set_delete_text(Pt("Delete files from %(team_name)s Dropbox thenext time this computer comes online.").format({team_name:K.get_viewer().team_name}))):this.delete_support_type===c.DELETE_ON_UNLINK_SUPPORTED_PERSONAL_ONLY?(this.$modal_window.find(".unlink-choice").change(function(e){return function(){return e._get_unlink_select()===D.ROLE_WORK?e.$modal_window.find(".new_client").hide():e.$modal_window.find(".new_client").show()}}(this)),this._set_delete_text(Pt("Delete files from my personal Dropbox the next time this computer comes online."))):this.delete_support_type===c.DELETE_ON_UNLINK_SUPPORTED&&(this._set_delete

     _text(Pt("Delete files from these Dropboxes the next time this computer comes online.")),this.$modal_window.find(".unlink-choice").change(function(e){return function(){return e._set_delete_text(e._get_unlink_select()===D.ROLE_PERSONAL?Pt("D

    elete files from my personal Dropbox the next time this computer comes online."):e._get_unlink_select()===D.ROLE_WORK?Pt("Delete files from %(team_name)s Dropbox the next time this computer comes online.").format({team_name:K.get_viewer().team_name}):Pt("Delete files from these Dropboxes the next time this computer comes online."))}}(this))),this.show_host_selector&&(e="",this.$modal_window.find(".unlink-select").removeClass("hidden"),this.$modal_window.find(".unlink-modal-text").html(Pt("Which Dropboxes do you want to unlink from %(host_name)s? Any Dropbox you unlink will immediately stop syncing.").format({host_name:e}))),this.$modal_window.find("[name=host_id]").attr("value",this.host_id),this.$modal_window.find("[name=team_id]").attr("value",this.team_id),this.$modal_window.find("[name=user_id]").attr("value",this.owner_id),this.$modal_window.find(".host_name").text(this.name)},t.prototype.get_selected_hosts=function(){var e;return 1===v.values(this.host_ids).length?v.values(this.host_ids):

    (e=ke(".unlink-choice").val(),"both"===e?v.values(this.host_ids):[this.host_ids[e]])},t}(xt);var Pi;Pi=ut.News={DEFAULT_TAB:"recent-news",init:function(){return $("news-home").on("click","#nav a",function(e,t){var n;return t.hasAttribute("data-div")?(e.preventDefault(),n=t.readAttribute("data-div"),p.push_state("/news/"+n)):void 0}),p.add_callback("/news",Pi.history_change)},change_tab:function(e){var t;return t=$$("#nav a[data-div="+e+"]").first(),$(t)?($$(".section").invoke("removeClassName","selected"),$$("#nav a").invoke("removeClassName","selected"),$(t).addClassName("selected"),$(e).addClassName("selected")):void 0},history_change:function(e){return e=e||Pi.DEFAULT_TAB,Pi.change_tab(e)}};var qi;qi=ut.Recover={init:function(){var e;return e=$("recover-form"),e.observe("submit",this.form_submit.bind(this))},form_submit:function(e){return this.clear_error(),e.preventDefault(),li.ajax_submit($("recover-form"),null,this.submit_response.bind(this))},submit_response:function(e){var t;return t=JSON.parse(e.responseText),"error

    "===t.status&&this.show_error(t.msg),"ok"===t.status&&this.show_hosts(t),"redirect"===t.status?window.location.href=t.url:void 0},show_hosts:function(e){var t,n,i,r,o,s,a;for(li.add_vars($("recover-form"),{check_file:"true"}),$("filename-to-create").update(e.filename),n=$("trusted-hosts"),n.update(),a=e.hosts,i=0,o=a.length;o>i;i++)t=a[i],s=new Element("li"),r="lnx","mac"===t.platform&&(r="osx"),"win"===t.platform&&(r="win"),s.__sert(Q.make("web",r)),s.__sert(new ot(t.display

     _name.escapeHTML())),n.appendChild(s);return $("login-step").hide(),$("hosts-step").show()},show_error:function(e){return $("error-messages").update(e),$("error-messages").show()},clear_error:function(){return $("error-messages").update()}};var Ui;Ui=ut.Restore={next:function(){var e,t;return t=ke("ul.selected"),e=t.ne

  • 8/19/2019 3.3 Terminos y Definiciones en La Organizacion Educativa

    21/43

    xt("ul"),e.addClass("selected"),t.removeClass("selected"),e.next("ul").length?ke("#next-page").show():ke("#next-page").hide(),ke("#prev-page").show(),Ui.inc_page(1)},prev:function(){var e,t;return t=ke("ul.selected"),e=t.prev("ul"),e.addClass("selected"),t.removeClass("selected"),e.prev("ul").length?ke("#prev-page").show():ke("#prev-page").hide(),ke("#next-page").show(),Ui.inc_page(-1)},inc_page:function(e){var t,n;return t=parseInt(ke("#page_num").text(),10),n=t+e,ke("#page_ num").text(n)},init:function(e,t,n){var i;return i=K.get_viewer().get_user_by_id(n),ke("#next-page").on("click",function(e){return Ui.next(e),!1}),ke("#prev-page").on("click",function(e){return Ui.prev(e),!1}),ke("#restore-submit-button").on("click",function(){return _i.do_folder_restore(e,i),!1}),ke("#restore-cancel-button").on("click",function(){return nt.redirect(t)}),ke("#restore-back-button").on("click",function(){return nt.redirect(t)})}};var ji,Bi,zi,Hi,Vi,kn=function(e,t){return function(){return e.apply(t,arguments)}},bn=function(e,t){function n(){this.constructor=e}for(var i in t)yn.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},yn={}.hasOwnProperty;ji=ut.SelectRoleModal=function(e){function t(){return this.on_show=kn(this.on_show,this),t.__super__.constructor.apply(this,arguments)}return bn(t,e),t.prototype.on_select_role=null,t.prototype.on_show=function(){return ke(".role-options li").click(function(e){return function(t){var n,i;return n=ke(t.target).closest("li"),i=n.data("role"),ft(e.on_select_role,"missing on_select_role implementation"),e.on_select_role(i),e.hide()}}(this))},t}(xt),zi=ut.SharedFolderSelectRoleModal=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return bn(t,e),t.prototype.on_select_role=function(e){var t;return t=function(){return Un.role_picker.ensure_role_is_visible(e),tn.start_wizard_for_user(K.get_v

    iewer().get_user_by_role(e))},e===ie.logged_out_role?ie.show_modal({role:e,on_success:t}):t()},t}(ji),Hi=ut.ShmodelC2DSelectRoleModal=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return bn(t,e),t.prototype.on_select_role=function(e){var t;return t=function(){return Wn.show_c2d_modal(e)},K.get_viewer().is_role_signed_in(e)?t():ie.show_modal({role:e,on_success:t})},t}(ji),Vi=ut.ShmodelSyncSelectRoleModal=function(e){function t(){return t.__super

     __.constructor.apply(this,arguments)}return bn(t,e),t.prototype.on_select_role=function(e){var t;return t=function(){return Wn.request_shared_folder_sync(e)},K.get_viewer().is_role_signed_in(e)?t():ie.show_modal({role:e,on_success:t})},t}(ji),Bi=ut.ShareShmodelSelectRoleModal=function(e){function t(){return this.on_select_role=kn(this.on_select_role,this),t.__super__.constructor.apply(this,arguments)}return bn(t,e),t.prototype.on_select_role=function(e){return Wn.prompt_login

     _then_share(this.options.link_url,this.options.short_url,this.options.tokenizer_ 

    type,e)},t}(ji);var Yi;Yi=ut.TabController=Class.create({initialize:function(e,t){var n;return n=$(e),ft(n,e+" is missing."),this.container=n,this.options={killEvent:!0},Object.extend(this.options,t),this.listen()},listen:function(){var e,t,n,i,r,o;for(o=this,i=this.container.select("a"),r=[],t=0,n=i.length;n>t;t++)e=i[t],ft(e.id&&e.id.length>0,"Element is missing an id"),r.push(e.observe("click",function(e){return this.click(e)}.bindAsEventListener(o)));return r},click:function(e){return this.options.killEvent&&Event.stop(e),this.toggle($(e.target))},toggle:function(e){var t,n,i,r,o;return o=this.container.down("a.selected"),o&&(r=$(o.id+"-content"),r&&r.hide()),this.container.select(".selected").invoke("removeClassName","selected"),n=!1,e||(e=this.container.down("a"),n=!0),e.addClassName("selected"),t=$(e.id+"-content"),t&