diff options
author | Simon Rettberg | 2016-09-07 17:23:30 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-09-07 17:23:30 +0200 |
commit | c86f4161abc11d048d75d12442850849c55709b2 (patch) | |
tree | 27c93bcc920c94ddeb08b004809f998b55dfc47c /modules-available/news/templates | |
parent | Merge branch 'modularization' of dnbd3:openslx-ng/slx-admin into modularization (diff) | |
download | slx-admin-c86f4161abc11d048d75d12442850849c55709b2.tar.gz slx-admin-c86f4161abc11d048d75d12442850849c55709b2.tar.xz slx-admin-c86f4161abc11d048d75d12442850849c55709b2.zip |
[news] Switch to new ellipsis hack; fix saving when summernote is in source code view
Diffstat (limited to 'modules-available/news/templates')
-rw-r--r-- | modules-available/news/templates/page-news.html | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/modules-available/news/templates/page-news.html b/modules-available/news/templates/page-news.html index 7750137e..192635ea 100644 --- a/modules-available/news/templates/page-news.html +++ b/modules-available/news/templates/page-news.html @@ -18,7 +18,7 @@ <textarea name="news-content" id ="news-content-id" class="form-control summernote" rows="5" cols="30" placeholder="">{{latestContent}}</textarea> </div> <p>{{lang_latestUpdate}}: {{latestDate}}</p> - <button class="btn btn-primary btn-sm" name="news-type" value="news" type="submit">{{lang_save}}</button> + <button class="btn btn-primary btn-sm sn-btn" name="news-type" value="news" type="submit">{{lang_save}}</button> <input type="hidden" name="token" value="{{token}}"> </form> <br/> @@ -41,10 +41,10 @@ <tbody> {{#list}} <tr {{#active}}class="active"{{/active}}> - <td class="text-left nowrap">{{date}}</td> - <td class="slx-ellipsis">{{title}}</td> - <td class="slx-ellipsis">{{content}}</td> - <td> + <td class="text-left text-nowrap">{{date}}</td> + <td><table class="slx-ellipsis"><tr><td>{{title}}</td></tr></table></td> + <td><table class="slx-ellipsis"><tr><td>{{content}}</td></tr></table></td> + <td class="text-nowrap"> <a class="btn btn-primary btn-xs" href="?do=news&newsid={{newsid}}&action=show"><span class="glyphicon glyphicon-share-alt"></span> {{lang_show}}</a> <button class="btn btn-danger btn-xs" type="submit" name="newsid" value="{{newsid}}"><span class="glyphicon glyphicon-remove"></span> {{lang_delete}}</button> </td> @@ -62,9 +62,9 @@ <form action="?do=News&action=save" method="post"> <div class="form-group"> <label for="news-content-id">{{lang_content}}</label> - <textarea name="help-content" id ="help-content-id" class="form-control summernote" style="min-height:400px" placeholder="">{{latestHelp}}</textarea> + <textarea name="help-content" id="help-content-id" class="form-control summernote" style="min-height:400px" placeholder="">{{latestHelp}}</textarea> </div> - <button class="btn btn-primary btn-sm" name="news-type" value="help" type="submit">{{lang_save}}</button> + <button class="btn btn-primary btn-sm sn-btn" name="news-type" value="help" type="submit">{{lang_save}}</button> <input type="hidden" name="token" value="{{token}}"> </form> <div class="panel panel-default"> @@ -85,9 +85,9 @@ <tbody> {{#listHelp}} <tr {{#active}}class="active"{{/active}}> - <td class="text-left nowrap">{{date}}</td> - <td class="slx-ellipsis">{{content}}</td> - <td> + <td class="text-left text-nowrap">{{date}}</td> + <td><table class="slx-ellipsis"><tr><td>{{content}}</td></tr></table></td> + <td class="text-nowrap"> <a class="btn btn-primary btn-xs" href="?do=news&newsid={{newsid}}&action=show"><span class="glyphicon glyphicon-share-alt"></span> {{lang_show}}</a> <button class="btn btn-danger btn-xs" type="submit" name="newsid" value="{{newsid}}"><span class="glyphicon glyphicon-remove"></span> {{lang_delete}}</button> </td> @@ -102,3 +102,13 @@ </div> </div> </div> +<script type="application/javascript"><!-- +document.addEventListener("DOMContentLoaded", function () { + $('.sn-btn').click(function (event) { + var $button = $('.note-btn.btn-codeview'); + if ($button.hasClass('active')) { + $button.click(); + } + }); +}, false); +// --></script>
\ No newline at end of file |