[Notice] Announcing the End of Demo Server [Read me]
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
@**
* Yobi, Project Hosting SW
*
* Copyright 2013 NAVER Corp.
* http://yobi.io
*
* @author Keesun Baik
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
**@
@(project: Project, page: com.avaje.ebean.Page[PullRequest],
condition: controllers.PullRequestApp.SearchCondition, requestType: String)
@projectLayout(Messages("menu.pullRequest"), project, utils.MenuType.PULL_REQUEST) {
@projectMenu(project, utils.MenuType.PULL_REQUEST, "main-menu-only")
<div class="page-wrap-outer">
<div class="project-page-wrap">
@views.html.git.partial_search(project, page, condition, requestType)
</div>
</div>
@common.select2()
<script type="text/javascript">
$(document).ready(function(){
var htPjaxOptions = {
"fragment": "div[pjax-container]",
"timeout" : 3000
};
if($.support.pjax) {
$.pjax.defaults.maxCacheLength = 0;
}
// on click pagination
$(document).on("click", "a[pjax-page]", function(weEvt) {
$.pjax.click(weEvt, "div[pjax-container]", htPjaxOptions);
});
// on submit search form
$(document).on("submit", "form[name='search']", function(weEvt) {
$.pjax.submit(weEvt, "div[pjax-container]", htPjaxOptions);
});
// show spinners
$(document).on({
"pjax:send": function(){
NProgress.start();
},
"pjax:complete": function(){
NProgress.done();
}
});
});
</script>
}