mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
Merge pull request #19 from tfennelly/recena-JENKINS-31162-PR03
Fix new item page loading weirdness
This commit is contained in:
commit
3fb4fbbde9
2 files changed
+9
-9
No files matched your search
@@ -29,14 +29,13 @@ THE SOFTWARE.
|
||||
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:s="/lib/form">
|
||||
<j:getStatic var="permission" className="hudson.model.Item" field="CREATE"/>
|
||||
|
||||
<l:layout norefresh="true" cssclass="add-item" permission="${permission}" title="${%NewJob(it.newPronoun)}">
|
||||
<l:layout norefresh="true" cssclass="add-item main-panel-only" permission="${permission}" title="${%NewJob(it.newPronoun)}">
|
||||
|
||||
<l:js src="jsbundles/add-item.js" />
|
||||
<l:css src="jsbundles/add-item.css" />
|
||||
|
||||
<st:include page="sidepanel.jelly" />
|
||||
<l:main-panel>
|
||||
|
||||
<div id="create-item-panel" style="display: none;">
|
||||
<s:form method="post" action="createItem" name="createItem">
|
||||
|
||||
<j:if test="${!empty(app.itemMap)}">
|
||||
@@ -62,6 +61,7 @@ THE SOFTWARE.
|
||||
</s:bottomButtonBar>
|
||||
|
||||
</s:form>
|
||||
</div>
|
||||
|
||||
</l:main-panel>
|
||||
</l:layout>
|
||||
|
||||
@@ -15,6 +15,11 @@ var jRoot = $('head').attr('data-rooturl');
|
||||
|
||||
$.when(getItems()).done(function(data){
|
||||
$(function() {
|
||||
|
||||
// The main panel content is hidden by default via an
|
||||
// inline style. We're ready to remove that now.
|
||||
$('#create-item-panel').removeAttr('style');
|
||||
|
||||
//////////////////////////////
|
||||
// helpful reference DOM
|
||||
|
||||
@@ -29,12 +34,7 @@ $.when(getItems()).done(function(data){
|
||||
var $tabs = $('<div class="jenkins-config-widgets" />').appendTo($newView);
|
||||
var $categories = $('<div class="categories" />').appendTo($newView);
|
||||
var $subBtn = $('#bottom-sticker .yui-submit-button');
|
||||
var sectionsToShow = [];
|
||||
|
||||
////////////////////////////////
|
||||
// mark page for layout
|
||||
$('body').addClass('add-item main-panel-only');
|
||||
|
||||
var sectionsToShow = [];
|
||||
|
||||
////////////////////////////////
|
||||
// submit button click
|
||||
|
||||
Reference in new issue
Block a user