/* Minified: inspector.renderers.Project.js, inspector.renderers.User.js, jquery.objectSchedule.js, widgets.InlineTabs.js, widgets.MilestoneDatesWidget.js */
App.Inspector.Renderers.Project=function(wrapper_dom){var wrapper=$(wrapper_dom);var project_overview_structure='<div class="vcard project_overview"><div class="vcard_content"><div class="vcard_image"><div class="vcard_image_frame"></div></div><div class="vcard_data"><div class="properties"><div class="property"><div class="content object_name_content"></div></div></div></div><div class="clear"></div></div><div class="vcard_bottom"></div><div class="vcard_bottom_shadow_left"></div><div class="vcard_bottom_shadow_right"></div>';"</div>";wrapper.append(project_overview_structure);wrapper_dom.insp_data.properties=wrapper.find("div.vcard_content div.vcard_data div.properties");wrapper_dom.insp_data.widgets=wrapper.find("div.vcard_content div.vcard_image div.vcard_image_frame")};
App.Inspector.Renderers.User=function(wrapper_dom){var wrapper=$(wrapper_dom);var vcard_structure='<div class="vcard user_vcard"><div class="vcard_title"><div class="vcard_title_inner object_name_content"></div></div><div class="vcard_content"><div class="vcard_image"><div class="vcard_image_frame"></div></div><div class="vcard_data"><div class="properties"></div></div><div class="clear"></div></div><div class="vcard_bottom"></div><div class="vcard_bottom_shadow_left"></div><div class="vcard_bottom_shadow_right"></div>';"</div>";wrapper.append(vcard_structure);wrapper_dom.insp_data.properties=wrapper.find("div.vcard_content div.vcard_data div.properties");wrapper_dom.insp_data.widgets=wrapper.find("div.vcard_content div.vcard_image div.vcard_image_frame")};
(function($){var public_methods={init:function(options){return this.each(function(){var wrapper=$(this);var wrapper_dom=this;var label=get_label(options.start_on,options.due_on);if(options.show_label){var label_span=$('<span class="scheduled_label">'+label+"</span>").appendTo(wrapper);wrapper.append(" ")}if(options["interface"]==App.Wireframe.Utils.INTERFACE_DEFAULT){if(options.can_reschedule){var anchor=$('<a href="'+options.reschedule_url+'" title="'+label+'"></a>').appendTo(wrapper);var icon=$('<img src="'+get_icon_url.apply(this,[options.start_on||options.due_on])+'" />').appendTo(anchor);anchor.flyoutForm({width:"narrow",title:App.lang("Reschedule")+": "+options.object_name.clean(),success_event:options.event_name})}else{var icon=$('<img src="'+get_icon_url.apply(this,[options.start_on||options.due_on])+'" />').appendTo(wrapper)}$.each(options.listen_events,function(index,event_name){options.listen_events[index]=options.listen_events[index]+".single"});App.Wireframe.Events.bind(options.listen_events.join(" "),function(event,object){if(object.id!=options.object_id){return false}var label=get_label(object.start_on,object.due_on);if(options.show_label){label_span.text(label)}if(options.can_reschedule){anchor.attr("title",label)}icon.attr("src",get_icon_url(object.start_on||object.due_on))})}return true})}};var get_label=function(start_on,due_on){if(due_on&&start_on){return start_on.formatted_date_gmt+" - "+due_on.formatted_date_gmt}else{if(start_on){return start_on.formatted_date_gmt}else{if(due_on){return due_on.formatted_date_gmt}else{return App.lang("Not scheduled")}}}};var get_icon_url=function(scheduled){if(scheduled){return App.Wireframe.Utils.imageUrl("icons/12x12/object-schedule-active.png","system")}else{return App.Wireframe.Utils.imageUrl("icons/12x12/object-schedule-inactive.png","system")}};var plugin_name="objectSchedule";$.fn[plugin_name]=function(method){if(public_methods[method]){return public_methods[method].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof method==="object"||!method){return public_methods.init.apply(this,arguments)}else{$.error("Method "+method+" does not exist in jQuery."+plugin_name)}}}})(jQuery);
App.widgets.InlineTabs=function(){var wrapper;var inline_tab_anchors;var inline_content;return{init:function(wrapper_id){wrapper=$("#"+wrapper_id);inline_loader=wrapper.find(".inline_tabs_loader");inline_tab_anchors=wrapper.find(".inline_tabs_links a");inline_content=wrapper.find(".inline_tabs_content");inline_tab_anchors.each(function(){var anchor=$(this);anchor.click(function(){if(anchor.data("already_loading")){return false}anchor.data("already_loading",true);inline_tab_anchors.removeClass("selected");anchor.addClass("selected");var loader_height=210;inline_content.hide();$.mobile.showPageLoadingMsg();inline_loader.css("min-height",loader_height+"px").show();$.ajax({type:"get",url:App.extendUrl(anchor.attr("href"),{async:1,skip_layout:1}),success:function(response){inline_content.css("height","auto").html(response).trigger("create");inline_loader.hide();inline_content.show();$.mobile.hidePageLoadingMsg();anchor.data("already_loading",false)},error:function(response){App.Wireframe.Flash.error(App.lang("Failed to load :inline_tab page",{inline_tab:anchor.text()}));anchor.data("already_loading",false).removeClass("selected");inline_content.html("")}});return false})});inline_tab_anchors.eq(0).click()}}}();
App.widgets.MilestoneDatesWidget=function(){return{init:function(wrapper_id){var wrapper=$("#"+wrapper_id);wrapper.find("input[type=radio]").change(function(){var radio=$(this);if(radio.attr("value")=="1"){wrapper.find(".select_milestone_dates_set_range").hide()}else{wrapper.find(".select_milestone_dates_set_range").show()}})}}}();
