mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
Change context element IDs to use underscore instead of just the c prefix
This commit is contained in:
parent
9c28bc737c
commit
1e0f1bd611
3 changed files with 3 additions and 3 deletions
|
|
@ -644,7 +644,7 @@ var ContextListPage = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
save_context_name: function(value, settings) {
|
save_context_name: function(value, settings) {
|
||||||
var context_id = $(this).parents('.container.context').get(0).id.split('c')[1];
|
var context_id = $(this).parents('.container.context').get(0).id.split('_')[1];
|
||||||
var highlight = function(){
|
var highlight = function(){
|
||||||
$('div.context span#context_name').effect('highlight', {}, 500);
|
$('div.context span#context_name').effect('highlight', {}, 500);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ module TodosHelper
|
||||||
toggle = settings[:collapsible] ? container_toggle("toggle_#{settings[:id]}") : ""
|
toggle = settings[:collapsible] ? container_toggle("toggle_#{settings[:id]}") : ""
|
||||||
"#{toggle} #{settings[:title]} #{settings[:append_descriptor]}".html_safe
|
"#{toggle} #{settings[:title]} #{settings[:append_descriptor]}".html_safe
|
||||||
end
|
end
|
||||||
header += content_tag(:div, nil, :id =>"c_"+settings[:id]+"_target", :class=>"context_target drop_target")
|
header += content_tag(:div, nil, :id => settings[:id] + "_target", :class => "context_target drop_target")
|
||||||
header.html_safe
|
header.html_safe
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ cache [context, source_view_key, current_user.date.strftime("%Y%m%d"), @tag_name
|
||||||
render :partial => 'todos/collection',
|
render :partial => 'todos/collection',
|
||||||
:object => @not_done,
|
:object => @not_done,
|
||||||
:locals => { :settings => {
|
:locals => { :settings => {
|
||||||
:id => "c#{context.id}",
|
:id => "context_#{context.id}",
|
||||||
:collapsible => settings[:collapsible],
|
:collapsible => settings[:collapsible],
|
||||||
:container_name => 'context',
|
:container_name => 'context',
|
||||||
:title => show_context_name(context),
|
:title => show_context_name(context),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue