This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def ensure_owned_by_journalist | |
| errors.add_to_base("You must be a journalist to create a counterpoint.") unless Counterpoint.creatable? | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| include Webrat::Matchers | |
| def response_body | |
| @response.body | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // <div id="note1"> | |
| // <div class=".contents"/> | |
| // </div> | |
| // <div id="note2"> | |
| // <div class=".contents"/> | |
| // </div> | |
| function toggle_note_visibility(note) { | |
| contents = note.find(".contents"); | |
| if (contents.is(":visible")) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tab_opened: function(event) { | |
| PlatosForms.log("1"); | |
| var tab = event.target; | |
| PlatosForms.log("2"); | |
| var sb = new PFSideBar(); | |
| PlatosForms.log("3"); | |
| tab.addAttribute("platos-forms-sidebar", sidebar); | |
| PlatosForms.log("4"); | |
| PlatosForms.log("Tab " + tab._tPos + " added."); | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tab_opened: function(event) { | |
| var tab = event.target; | |
| var sidebar = new PlatosForms.SideBar(tab); | |
| tab["platos-forms-sidebar"] = sidebar; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *~ | |
| .DS_Store | |
| .*.swp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <tabbrowser id="content"> | |
| <xul:browser> | |
| <splitter id="platos-forms-splitter" collapse="after" persist="hidden"/> | |
| <iframe src="http://google.com" orient="vertical" width="320" min-width="28"> | |
| </iframe> | |
| </xul:browser> | |
| </tabbrowser> |