Skip to content
Browse files

Merge pull request #99 from srogier/master

rename js's namespace prefix
  • Loading branch information...
2 parents 35701d4 + ace6ed2 commit 0d3f103f03121301507272334a50b809580c3dc9 @srogier srogier committed May 14, 2012
View
8 web/js/jenkins/addBuildForm.js
@@ -10,11 +10,11 @@
return this.each(function(){
var $this = $(this);
- var data = $this.data('pmsipilot.addBuildForm');
+ var data = $this.data('jenkins-khan.addBuildForm');
if (!data) {
//enregistrement des options
- $(this).data('pmsipilot.addBuildForm', {
+ $(this).data('jenkins-khan.addBuildForm', {
target : $this,
options: options
});
@@ -29,7 +29,7 @@
},
showJobParameters: function(jobName) {
- var options = $(this).data('pmsipilot.addBuildForm').options;
+ var options = $(this).data('jenkins-khan.addBuildForm').options;
$(options.parametersSelector, this).hide();
$(options.parametersSelector + '.' + jobName, this).show();
@@ -47,7 +47,7 @@
} else if ( typeof method === 'object' || ! method ) {
return methods.init.apply( this, arguments );
} else {
- $.error( 'Unknown ' + method + ' in pmsipilot.addBuildForm' );
+ $.error( 'Unknown ' + method + ' in jenkins-khan.addBuildForm' );
}
};
View
14 web/js/jenkins/createGroupRunForm.js
@@ -10,11 +10,11 @@
return this.each(function(){
var $this = $(this);
- var data = $this.data('pmsipilot.createGroupRunForm');
+ var data = $this.data('jenkins-khan.createGroupRunForm');
if (!data) {
//enregistrement des options
- $(this).data('pmsipilot.createGroupRunForm', {
+ $(this).data('jenkins-khan.createGroupRunForm', {
target : $this,
options: options
});
@@ -87,7 +87,7 @@
* @return void
*/
removeViewAllJob: function() {
- var options = $(this).data('pmsipilot.createGroupRunForm').options;
+ var options = $(this).data('jenkins-khan.createGroupRunForm').options;
$(options.jobsSelector + ' :visible:checkbox', this).removeAttr('checked');
},
@@ -97,7 +97,7 @@
* @return void
*/
addViewAllJob: function() {
- var options = $(this).data('pmsipilot.createGroupRunForm').options;
+ var options = $(this).data('jenkins-khan.createGroupRunForm').options;
$(options.jobsSelector + ' :visible:checkbox', this).attr('checked','checked');
},
@@ -106,7 +106,7 @@
* @return string
*/
currentView: function() {
- var options = $(this).data('pmsipilot.createGroupRunForm').options;
+ var options = $(this).data('jenkins-khan.createGroupRunForm').options;
return $(options.viewTabSelector + '.' + options.tabLiActiveClass, this).attr(options.viewAttributeName);
},
@@ -115,7 +115,7 @@
* @param view
*/
displayJobsForView: function(view) {
- var options = $(this).data('pmsipilot.createGroupRunForm').options;
+ var options = $(this).data('jenkins-khan.createGroupRunForm').options;
$(options.jobsSelector, this).hide();
$(options.jobsSelector + '.' + view, this).css('display', 'block');
}
@@ -132,7 +132,7 @@
} else if ( typeof method === 'object' || ! method ) {
return methods.init.apply( this, arguments );
} else {
- $.error( 'Unknown ' + method + ' in pmsipilot.createGroupRunForm' );
+ $.error( 'Unknown ' + method + ' in jenkins-khan.createGroupRunForm' );
}
};
View
6 web/js/jenkins/delayedRun.js
@@ -10,11 +10,11 @@
return this.each(function(){
var $this = $(this);
- var data = $this.data('pmsipilot.delayedRun');
+ var data = $this.data('jenkins-khan.delayedRun');
if (!data) {
//enregistrement des options
- $(this).data('pmsipilot.delayedRun', {
+ $(this).data('jenkins-khan.delayedRun', {
target : $this,
options: options
});
@@ -93,7 +93,7 @@
} else if ( typeof method === 'object' || ! method ) {
return methods.init.apply( this, arguments );
} else {
- $.error( 'Unknown ' + method + ' in pmsipilot.delayedRun' );
+ $.error( 'Unknown ' + method + ' in jenkins-khan.delayedRun' );
}
};
View
6 web/js/jenkins/jenkinsDashboard.js
@@ -10,11 +10,11 @@
return this.each(function(){
var $this = $(this);
- var data = $this.data('pmsipilot.jenkinsDashboard');
+ var data = $this.data('jenkins-khan.jenkinsDashboard');
if (!data) {
//enregistrement des options
- $(this).data('pmsipilot.jenkinsDashboard', {
+ $(this).data('jenkins-khan.jenkinsDashboard', {
target : $this,
options: options
});
@@ -77,7 +77,7 @@
} else if ( typeof method === 'object' || ! method ) {
return methods.init.apply( this, arguments );
} else {
- $.error( 'Unknown ' + method + ' in pmsipilot.jenkinsDashboard' );
+ $.error( 'Unknown ' + method + ' in jenkins-khan.jenkinsDashboard' );
}
};

0 comments on commit 0d3f103

Please sign in to comment.
Something went wrong with that request. Please try again.