mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-27 09:34:08 +01:00
parent
3c82b88720
commit
4f66e463bd
2 changed files with 37 additions and 18 deletions
|
|
@ -27,12 +27,6 @@
|
||||||
<% if has_contexts -%>
|
<% if has_contexts -%>
|
||||||
<ol>
|
<ol>
|
||||||
<li>Choose the context you want to add actions to: <select name="applescript1-contexts" id="applescript1-contexts"><%= options_from_collection_for_select(current_user.contexts, "id", "name", current_user.contexts.first.id) %></select>
|
<li>Choose the context you want to add actions to: <select name="applescript1-contexts" id="applescript1-contexts"><%= options_from_collection_for_select(current_user.contexts, "id", "name", current_user.contexts.first.id) %></select>
|
||||||
<%= observe_field "applescript1-contexts", :update => "applescript1",
|
|
||||||
:with => 'context_id',
|
|
||||||
:url => { :controller => "integrations", :action => "get_applescript1" },
|
|
||||||
:before => "$('applescript1').startWaiting()",
|
|
||||||
:complete => "$('applescript1').stopWaiting()"
|
|
||||||
%>
|
|
||||||
</li>
|
</li>
|
||||||
<li>Copy the Applescript below to the clipboard.<br />
|
<li>Copy the Applescript below to the clipboard.<br />
|
||||||
|
|
||||||
|
|
@ -52,12 +46,6 @@
|
||||||
<% if has_contexts -%>
|
<% if has_contexts -%>
|
||||||
<ol>
|
<ol>
|
||||||
<li>Choose the context you want to add actions to: <select name="applescript2-contexts" id="applescript2-contexts"><%= options_from_collection_for_select(current_user.contexts, "id", "name", current_user.contexts.first.id) %></select>
|
<li>Choose the context you want to add actions to: <select name="applescript2-contexts" id="applescript2-contexts"><%= options_from_collection_for_select(current_user.contexts, "id", "name", current_user.contexts.first.id) %></select>
|
||||||
<%= observe_field "applescript2-contexts", :update => "applescript2",
|
|
||||||
:with => 'context_id',
|
|
||||||
:url => { :controller => "integrations", :action => "get_applescript2" },
|
|
||||||
:before => "$('applescript2').startWaiting()",
|
|
||||||
:complete => "$('applescript2').stopWaiting()"
|
|
||||||
%>
|
|
||||||
</li>
|
</li>
|
||||||
<li>Copy the Applescript below to the clipboard.<br />
|
<li>Copy the Applescript below to the clipboard.<br />
|
||||||
|
|
||||||
|
|
@ -79,12 +67,6 @@
|
||||||
<% if has_contexts -%>
|
<% if has_contexts -%>
|
||||||
<ol>
|
<ol>
|
||||||
<li>Choose the context you want to add actions to: <select name="quicksilver-contexts" id="quicksilver-contexts"><%= options_from_collection_for_select(current_user.contexts, "id", "name", current_user.contexts.first.id) %></select>
|
<li>Choose the context you want to add actions to: <select name="quicksilver-contexts" id="quicksilver-contexts"><%= options_from_collection_for_select(current_user.contexts, "id", "name", current_user.contexts.first.id) %></select>
|
||||||
<%= observe_field "quicksilver-contexts", :update => "quicksilver",
|
|
||||||
:with => 'context_id',
|
|
||||||
:url => { :controller => "integrations", :action => "get_quicksilver_applescript" },
|
|
||||||
:before => "$('quicksilver').startWaiting()",
|
|
||||||
:complete => "$('quicksilver').stopWaiting()"
|
|
||||||
%>
|
|
||||||
</li>
|
</li>
|
||||||
<li>Copy the Applescript below to the clipboard.<br />
|
<li>Copy the Applescript below to the clipboard.<br />
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -489,6 +489,43 @@ $(document).ready(function() {
|
||||||
$("#feeds-for-project").load('/feedlist/get_feeds_for_project?project_id='+this.value);
|
$("#feeds-for-project").load('/feedlist/get_feeds_for_project?project_id='+this.value);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/* Integrations page */
|
||||||
|
/*
|
||||||
|
<%= observe_field "applescript1-contexts", :update => "applescript1",
|
||||||
|
:with => 'context_id',
|
||||||
|
:url => { :controller => "integrations", :action => "get_applescript1" },
|
||||||
|
:before => "$('applescript1').startWaiting()",
|
||||||
|
:complete => "$('applescript1').stopWaiting()"
|
||||||
|
%>
|
||||||
|
*/
|
||||||
|
$('#applescript1-contexts').live('change', function(){
|
||||||
|
$("#applescript1").load(relative_to_root('integrations/get_applescript1?context_id='+this.value));
|
||||||
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
|
<%= observe_field "applescript2-contexts", :update => "applescript2",
|
||||||
|
:with => 'context_id',
|
||||||
|
:url => { :controller => "integrations", :action => "get_applescript2" },
|
||||||
|
:before => "$('applescript2').startWaiting()",
|
||||||
|
:complete => "$('applescript2').stopWaiting()"
|
||||||
|
%>
|
||||||
|
*/
|
||||||
|
$('#applescript2-contexts').live('change', function(){
|
||||||
|
$("#applescript2").load(relative_to_root('integrations/get_applescript2?context_id='+this.value));
|
||||||
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
|
<%= observe_field "quicksilver-contexts", :update => "quicksilver",
|
||||||
|
:with => 'context_id',
|
||||||
|
:url => { :controller => "integrations", :action => "get_quicksilver_applescript" },
|
||||||
|
:before => "$('quicksilver').startWaiting()",
|
||||||
|
:complete => "$('quicksilver').stopWaiting()"
|
||||||
|
%>
|
||||||
|
*/
|
||||||
|
$('#quicksilver-contexts').live('change', function(){
|
||||||
|
$("#quicksilver").load(relative_to_root('integrations/get_quicksilver_applescript?context_id='+this.value));
|
||||||
|
});
|
||||||
|
|
||||||
/* Gets called from some AJAX callbacks, too */
|
/* Gets called from some AJAX callbacks, too */
|
||||||
enable_rich_interaction();
|
enable_rich_interaction();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue