public
Description: Replaces <select> tags with a full-HTML, RESTful JavaScript record browser (Rails plugin)
Homepage: http://code.google.com/p/recordselect
Clone URL: git://github.com/cainlevy/recordselect.git
check to see if dialog still exists before replacing into it after search. 
closes issue #52.
cainlevy (author)
Wed Jul 23 16:09:35 -0700 2008
commit  69d78db3781968b9000a120f7dbc9cbab8a9a8a9
tree    c98ba7a18bcf7825dc73b44dcc9472db8b155044
parent  7e7db9c8c6d98a4a05c4dfc62e3bf07ed7feec15
...
1
 
 
2
3
4
 
5
...
 
1
2
3
 
4
5
6
0
@@ -1,3 +1,4 @@
0
-list = render_record_select('_list.rhtml', :locals => {:page => @page})
0
+page.assign "data", render_record_select('_list.rhtml', :locals => {:page => @page})
0
+page.assign "elem", page.literal("$$('##{record_select_id} ol')[0]")
0
 
0
-page << %|Element.replace($$('##{record_select_id} ol')[0], #{list.to_json})|
0
\ No newline at end of file
0
+page << %|if (elem) {Element.replace(elem, data)}|
0
\ No newline at end of file

Comments

    No one has commented yet.