Move context menu function from main script
This commit is contained in:
parent
2c3be12269
commit
43e62832dd
@ -120,8 +120,6 @@ function init() {
|
|||||||
"project/scripts",
|
"project/scripts",
|
||||||
module,
|
module,
|
||||||
[
|
[
|
||||||
"scripts/index/jquery.contextMenu.min.js",
|
|
||||||
"scripts/index/jquery.ui.position.min.js",
|
|
||||||
"scripts/database-extension.js",
|
"scripts/database-extension.js",
|
||||||
"scripts/project/database-exporters.js"
|
"scripts/project/database-exporters.js"
|
||||||
]
|
]
|
||||||
|
@ -27,32 +27,6 @@
|
|||||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$(function(){
|
|
||||||
$.contextMenu({
|
|
||||||
selector: '.context-menu-one',
|
|
||||||
trigger: 'left',
|
|
||||||
build: function($trigger, e) {
|
|
||||||
|
|
||||||
return {
|
|
||||||
callback: function(key, options) {
|
|
||||||
var m = "clicked: " + key;
|
|
||||||
DatabaseExtension.handleSavedConnectionClicked(key, $(this).text());
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
items: {
|
|
||||||
"edit": {name: " Edit "},
|
|
||||||
"sep0": "",
|
|
||||||
"delete": {name: " Delete "},
|
|
||||||
"sep1": "---------",
|
|
||||||
"connect": {name: " Connect "},
|
|
||||||
"dummy": {name: "", icon: ""}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
var DatabaseExtension = {};
|
var DatabaseExtension = {};
|
||||||
|
|
||||||
DatabaseExtension.currentConnection = {};
|
DatabaseExtension.currentConnection = {};
|
||||||
|
@ -27,6 +27,32 @@
|
|||||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
$(function(){
|
||||||
|
$.contextMenu({
|
||||||
|
selector: '.context-menu-one',
|
||||||
|
trigger: 'left',
|
||||||
|
build: function($trigger, e) {
|
||||||
|
|
||||||
|
return {
|
||||||
|
callback: function(key, options) {
|
||||||
|
var m = "clicked: " + key;
|
||||||
|
DatabaseExtension.handleSavedConnectionClicked(key, $(this).text());
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
items: {
|
||||||
|
"edit": {name: " Edit "},
|
||||||
|
"sep0": "",
|
||||||
|
"delete": {name: " Delete "},
|
||||||
|
"sep1": "---------",
|
||||||
|
"connect": {name: " Connect "},
|
||||||
|
"dummy": {name: "", icon: ""}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
Refine.DatabaseSourceUI = function(controller) {
|
Refine.DatabaseSourceUI = function(controller) {
|
||||||
this._controller = controller;
|
this._controller = controller;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user