Commits

Luke Plant committed 6496eb8

Changed captions and order of buttons

Comments (0)

Files changed (1)

semanticeditor/static/semanticeditor/javascript/wymeditor/plugins/semantic/wymeditor.semantic.js

     container.prepend(
         "<div class=\"prescontrol wym_panel\">" +
             "<h2>Semantic editor</h2>" +
+            "<input type=\"submit\" id=\"" + showStylesButtonId + "\" /><br/>" +
             "<input type=\"submit\" value=\"Clean pasted HTML\" id=\"" + cleanHtmlButtonId  +  "\" /><br/>" +
             "<input type=\"submit\" value=\"Preview\" id=\"" + previewButtonId + "\" /><br/>" +
-            "<input type=\"submit\" id=\"" + showStylesButtonId + "\" /><br/>" +
             "<div class=\"prescontrolerror\" id=\"" + idPrefix + "errorbox" + "\"></div>" +
         "</div>");
 
     if (show) {
         jQuery(this.wym._doc).find('#presmodestyles').remove();
         jQuery(this.wym._iframe.ownerDocument).find('#presmodestyles').remove();
-        this.showStylesButton.attr('value', 'Hide styles');
+        this.showStylesButton.attr('value', 'Hide presentation layer');
         // Fix height of list of classes.
         var h = jQuery(" .wym_area_main").outerHeight() -
             jQuery(this.wym._options.containersSelector).outerHeight() -
         jQuery('<style rel="stylesheet" type="text/css" id="presmodestyles">' +
                '.wym_layout_commands, .wym_classes  {display: none!important;} ' +
                '</style>').appendTo(jQuery(this.wym._iframe.ownerDocument).find("head"));
-        this.showStylesButton.attr('value', 'Show styles');
+        this.showStylesButton.attr('value', 'Show presentation layer');
     }
 };
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.